/**
 * A WebSocket implementation that wraps the browser native WebSocket
 * interface and exposes a similar interface to the Node.js WebSocket
 */
export declare class BrowserSocket {
    #private;
    constructor(wsUrl: string, opts: any);
    handleMessage(event: MessageEvent): void;
    send(data: string): void;
    on(event: string, callback: (data: any, reason?: any) => void): this;
    off(event: string, callback: (data: any, reason?: any) => void): this;
    close(): void;
}
//# sourceMappingURL=socket.d.ts.map