/** * Browser WebSocket transport for Sideband. * Client-only (browsers cannot listen for WebSocket connections). */ import type { Transport } from "@sideband/transport"; import type { WsEndpoint, WsTransportOptions } from "./types.js"; export { WsConnection, type WsConnectionInit } from "./connection.js"; export * from "./types.js"; export * from "./ws-errors.js"; /** * Create a WebSocket endpoint from a URL. * Validates that the URL uses ws: or wss: scheme. * Strips hash fragment (not sent to server per RFC 6455). */ export declare function wsEndpoint(url: string | URL): WsEndpoint; /** * Convert HTTP(S) URL to WebSocket URL. * http: -> ws:, https: -> wss: * Strips hash fragment. */ export declare function wsEndpointFromHttp(url: string | URL): WsEndpoint; /** * Create a browser WebSocket transport. */ export declare function browserWsTransport(): Transport; /** * Unified wsTransport factory for browser context. * Always returns a browser WebSocket transport; the `platform` option is accepted * for API parity with the root index export but ignored (browser has one platform). */ export declare function wsTransport(_options?: WsTransportOptions): Transport; //# sourceMappingURL=browser.d.ts.map