import { IWebSocketTransport, TWireData } from './types'; export declare class BrowserWebSocketTransport implements IWebSocketTransport { private ws; binaryType?: "blob" | "arraybuffer"; onopen: ((event: Event) => void) | null; onclose: ((event: CloseEvent) => void) | null; onmessage: ((event: MessageEvent) => void) | null; onerror: ((event: Event) => void) | null; /** * Mirrors `WebSocket.readyState` of the underlying socket. Returns * `WebSocket.CLOSED` when no socket has been created yet — callers * cannot distinguish "never connected" from "explicitly closed" off * this value alone; combine with the manager's connection state if * you need that distinction. */ get readyState(): number; connect(url: string, protocols?: string | string[]): void; disconnect(code?: number, reason?: string): void; send(data: TWireData): void; } export declare function createTransport(): IWebSocketTransport; //# sourceMappingURL=transport.d.ts.map