import { ConnectionEvent, ConnectionMessage, ConnectionOpenResponse, ConnectionState, EventSource, IConnection, IStringDictionary, IWebsocketMessageFormatter, Promise } from "../common/Exports"; export declare class WebsocketConnection implements IConnection { private uri; private messageFormatter; private connectionMessageAdapter; private id; private isDisposed; constructor(uri: string, queryParameters: IStringDictionary, headers: IStringDictionary, messageFormatter: IWebsocketMessageFormatter, connectionId?: string); Dispose: () => void; IsDisposed: () => boolean; readonly Id: string; State: () => ConnectionState; Open: () => Promise; Send: (message: ConnectionMessage) => Promise; Read: () => Promise; readonly Events: EventSource; }