export declare class TestWebSocket extends EventTarget { #private; static readonly CONNECTING = 0; static readonly OPEN = 1; static readonly CLOSING = 2; static readonly CLOSED = 3; readonly CONNECTING = 0; readonly OPEN = 1; readonly CLOSING = 2; readonly CLOSED = 3; binaryType: BinaryType; bufferedAmount: number; readyState: number; constructor(url: string, protocol?: string); send(payload: string | Uint8Array | ArrayBuffer | Buffer): void; close(code?: number, reason?: string): void; }