export type WebSocketConstructor = { new (url: string | URL): WebSocket; prototype: WebSocket; readonly CONNECTING: number; readonly OPEN: number; readonly CLOSING: number; readonly CLOSED: number; }; /** * Resolve a WebSocket constructor that works on Node 20+. * * Node only exposes `globalThis.WebSocket` starting in Node 22. Node 20 still * ships a working implementation via `undici`, which is what the published CLI * must use so `join` / `wait` don't crash with `WebSocket is not defined`. */ export declare function resolveWebSocket(): WebSocketConstructor; /** Host-only form of a ws(s) URL for logs (no query/token leakage). */ export declare function describeWsTarget(wsUrl: string): string;