import { _ as RpcFunctionDefinitionAny } from "./types-BkkQ0Txg.mjs"; import { ChannelOptions } from "birpc"; //#region src/rpc/transports/ws-client.d.ts interface WsRpcChannelOptions { url: string; onConnected?: (e: Event) => void; onError?: (e: Error) => void; onDisconnected?: (e: CloseEvent) => void; authToken?: string; /** * RPC function definitions (or just the `jsonSerializable` flag per * method) used to dispatch the per-call wire serializer. Pass an * empty / partial map on clients that don't have the full registry — * encoding falls back to structured-clone (the safer superset) and * decoding still routes correctly via the wire prefix. */ definitions?: ReadonlyMap>; } /** * Build a birpc `ChannelOptions` object backed by a browser `WebSocket`. * Pass the result straight to `createRpcClient`'s `channel` option. */ declare function createWsRpcChannel(options: WsRpcChannelOptions): ChannelOptions; //#endregion export { createWsRpcChannel as n, WsRpcChannelOptions as t };