type Listener = (...args: any[]) => void; declare class BrowserWebSocket { private _ws; private _listeners; /** Matches ws.readyState constants */ static readonly CONNECTING = 0; static readonly OPEN = 1; static readonly CLOSING = 2; static readonly CLOSED = 3; constructor(url: string); get readyState(): number; on(event: string, fn: Listener): this; send(data: string): void; close(code?: number, reason?: string): void; private _emit; } export default BrowserWebSocket; //# sourceMappingURL=ws-browser.d.ts.map