import type * as Context from "effect/Context"; import * as Layer from "effect/Layer"; import type * as Rpc from "effect/rpc/Rpc"; import * as RpcClient from "effect/rpc/RpcClient"; import type { RpcClientError } from "effect/rpc/RpcClientError"; import type * as RpcGroup from "effect/rpc/RpcGroup"; import * as RpcSerialization from "effect/rpc/RpcSerialization"; import * as Socket from "effect/socket/Socket"; export interface LayerOptions { /** Options passed to Effect's WebSocket transport. */ readonly socket?: Parameters[1]; /** Options passed to Effect's socket RPC protocol. */ readonly protocol?: Parameters[0]; /** Options passed to the grouped Effect RPC client. */ readonly client?: Omit[1]>, "flatten">; /** * Serialization matching the server. Alchemy's RpcDurableObject uses JSON. * @default RpcSerialization.json */ readonly serialization?: RpcSerialization.RpcSerialization["Service"]; } /** * Provide a typed RPC client and its WebSocket connection to a hibernatable * `RpcDurableObject` for the Layer's lifetime. Engines re-export this with * their own documentation. * * @internal */ export declare const layer: (service: Context.Key>, group: RpcGroup.RpcGroup, url: Parameters[0], options?: LayerOptions) => Layer.Layer>; //# sourceMappingURL=RpcWebSocketClient.d.ts.map