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 default WebSocket; /** * The package's web browser entry point. * * **WARNING:** This module has not been tested since v1. * @module */ declare global { interface WebSocket { on: (event: string, callback: (this: globalThis.WebSocket, ev: unknown) => unknown) => void; off: (event: string, callback: (this: globalThis.WebSocket, ev: unknown) => unknown) => void; once: (event: string, callback: (this: globalThis.WebSocket, ev: unknown) => unknown) => void; } } //# sourceMappingURL=ws-browser.d.ts.map