/// <reference types="node" />
import { MessageReader } from './messageReader';
import { MessageWriter } from './messageWriter';
export interface SocketTransport {
    onConnected(): Promise<[MessageReader, MessageWriter]>;
}
export declare function createClientSocketTransport(port: number, encoding?: BufferEncoding): Promise<SocketTransport>;
export declare function createServerSocketTransport(port: number, encoding?: BufferEncoding): [MessageReader, MessageWriter];
