import * as Effect from "../Effect.ts"; import type { Protocol } from "./RpcClient.ts"; import type { FromServerEncoded } from "./RpcMessage.ts"; /** * Buffers writes until `run` replays them with their original contexts and * installs the writer. Restores the previous writer when `run` ends. * * @stability unstable * @category services * @since 4.0.0 */ export declare const withRun: ) => Effect.Effect) => Effect.Effect; }>() => (f: (write: Parameters[0]) => Effect.Effect, EX, RX>) => Effect.Effect; /** * Builds an RPC client protocol service that tracks active client IDs and * buffers server responses per client until that client's `run` handler is * installed. * * @stability unstable * @category services * @since 4.0.0 */ export declare const withRunClient: (f: (write: (clientId: number, response: FromServerEncoded) => Effect.Effect, clientIds: ReadonlySet) => Effect.Effect, EX, RX>) => Effect.Effect; //# sourceMappingURL=Utils.d.ts.map