import type { PairingConnection } from '../ws/pairing-registry.js'; /** * Wrap a WHATWG `WebSocket` in a `PairingConnection`. This is the * common denominator across Cloudflare Workers (`WebSocketPair` * server half), Deno (`Deno.upgradeWebSocket().socket`), Bun's * upgraded socket, and any other runtime that exposes a * standards-compliant WebSocket object. * * The input type is intentionally the browser/global `WebSocket` * interface — *not* the Node `ws` library's variant, which uses an * EventEmitter API (`on('message', ...)`) rather than * `addEventListener('message', ...)`. Use `./node/upgrade.ts` for * the `ws` library path. */ export declare function createWHATWGPairingConnection(socket: WebSocket): PairingConnection; //# sourceMappingURL=adapter.d.ts.map