export declare class RPCWebSocket extends EventTarget implements WebSocket {
    #private;
    readonly CONNECTING: 0;
    readonly OPEN: 1;
    readonly CLOSING: 2;
    readonly CLOSED: 3;
    readonly id: string;
    readonly binaryType: BinaryType;
    readonly bufferedAmount: number;
    readonly extensions: string;
    readonly url: string;
    readonly protocol: string;
    readyState: number;
    onopen: ((this: WebSocket, ev: Event) => any) | null;
    onerror: ((this: WebSocket, ev: Event) => any) | null;
    onclose: ((this: WebSocket, ev: CloseEvent) => any) | null;
    onmessage: ((this: WebSocket, ev: MessageEvent<any>) => any) | null;
    constructor(url: string);
    send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;
    close(code?: number, reason?: string): void;
}
