import { IWebSocket, WebSocketMessageWriter as BaseWebSocketMessageWriter } from 'vscode-ws-jsonrpc';
import { Message } from 'vscode-jsonrpc';
export declare class WebSocketMessageWriter extends BaseWebSocketMessageWriter {
    private onSend;
    constructor(socket: IWebSocket, onSend?: () => void);
    write(msg: Message): Promise<void>;
}
