export declare const WebSocket: { new (url: string | URL, protocols?: string | string[]): WebSocket; prototype: WebSocket; readonly CONNECTING: 0; readonly OPEN: 1; readonly CLOSING: 2; readonly CLOSED: 3; }; export declare function isBrowserEnvironment(): boolean; export declare const useWebSocketProtocols = true;