import { ConnectionEvent, ConnectionMessage, ConnectionOpenResponse, ConnectionState, EventSource, IConnection, IStringDictionary, IWebsocketMessageFormatter } from "../common/Exports"; import { ProxyInfo } from "./ProxyInfo"; export declare class WebsocketConnection implements IConnection { private privUri; private privMessageFormatter; private privConnectionMessageAdapter; private privId; private privIsDisposed; constructor(uri: string, queryParameters: IStringDictionary, headers: IStringDictionary, messageFormatter: IWebsocketMessageFormatter, proxyInfo: ProxyInfo, enableCompression?: boolean, connectionId?: string); dispose(): Promise; isDisposed: () => boolean; get id(): string; state: () => ConnectionState; open: () => Promise; send: (message: ConnectionMessage) => Promise; read: () => Promise; get events(): EventSource; }