import { Effect, type Layer, type NonEmptyArray, Rpc, type RpcGroup, type RpcMessage } from '@livestore/utils/effect'; import type * as CfTypes from '../cf-types.ts'; export interface ClientDoWithRpcCallback { __DURABLE_OBJECT_BRAND: never; syncUpdateRpc: (payload: RpcMessage.ResponseChunkEncoded) => Promise; } /** * Construct a Durable Object RPC handler from an `RpcGroup`. * This is the DO equivalent of `RpcServer.toWebHandler`. */ export declare const toDurableObjectHandler: (group: RpcGroup.RpcGroup, options: { readonly layer: Layer.Layer | Rpc.Middleware, LE>; readonly disableTracing?: boolean | undefined; readonly spanPrefix?: string | undefined; readonly spanAttributes?: Record | undefined; }) => ((serializedPayload: Uint8Array) => Effect.Effect | CfTypes.ReadableStream>); /** Out-of-band RPC stream response emission back to the caller DO */ export declare const emitStreamResponse: (args_0: { env: Record; callerContext: { bindingName: string; durableObjectId: string; }; requestId: string; values: NonEmptyArray; }) => Effect.Effect; //# sourceMappingURL=server.d.ts.map