import * as z from "zod/mini"; import { type Generation } from "./v3-generation.js"; /** * RPC Request - supports idempotency keys for retries/replays */ export declare const rpcRequestSchema: z.ZodMiniObject<{ gen: z.core.$ZodBranded, "Generation", "out">; viewId: z.ZodMiniOptional>; t: z.ZodMiniLiteral<"getuserfeedback:rpc:request">; rpcId: z.ZodMiniString; method: z.ZodMiniString; params: z.ZodMiniUnknown; idemKey: z.ZodMiniString; }, z.core.$strip>; export declare const rpcResponseSchema: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{ gen: z.core.$ZodBranded, "Generation", "out">; viewId: z.ZodMiniOptional>; t: z.ZodMiniLiteral<"getuserfeedback:rpc:response">; rpcId: z.ZodMiniString; ok: z.ZodMiniLiteral; result: z.ZodMiniUnknown; }, z.core.$strip>, z.ZodMiniObject<{ gen: z.core.$ZodBranded, "Generation", "out">; viewId: z.ZodMiniOptional>; t: z.ZodMiniLiteral<"getuserfeedback:rpc:response">; rpcId: z.ZodMiniString; ok: z.ZodMiniLiteral; error: z.ZodMiniString; retriable: z.ZodMiniDefault>; }, z.core.$strip>], "ok">; export declare const rpcRequestWithViewIdSchema: z.ZodMiniObject<{ gen: z.core.$ZodBranded, "Generation", "out">; t: z.ZodMiniLiteral<"getuserfeedback:rpc:request">; rpcId: z.ZodMiniString; method: z.ZodMiniString; params: z.ZodMiniUnknown; idemKey: z.ZodMiniString; viewId: z.ZodMiniString; }, z.core.$strip>; export declare const rpcResponseWithViewIdSchema: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{ gen: z.core.$ZodBranded, "Generation", "out">; t: z.ZodMiniLiteral<"getuserfeedback:rpc:response">; rpcId: z.ZodMiniString; ok: z.ZodMiniLiteral; result: z.ZodMiniUnknown; viewId: z.ZodMiniString; }, z.core.$strip>, z.ZodMiniObject<{ gen: z.core.$ZodBranded, "Generation", "out">; t: z.ZodMiniLiteral<"getuserfeedback:rpc:response">; rpcId: z.ZodMiniString; ok: z.ZodMiniLiteral; error: z.ZodMiniString; retriable: z.ZodMiniDefault>; viewId: z.ZodMiniString; }, z.core.$strip>], "ok">; export type RpcRequest = z.output; export type RpcResponse = z.output; export declare function buildRpcRequest(params: { gen: number | Generation; rpcId: string; method: string; params: unknown; idemKey: string; viewId?: string; }): RpcRequest; export declare function buildRpcResponse(params: { gen: number | Generation; rpcId: string; ok: true; result: unknown; viewId?: string; } | { gen: number | Generation; rpcId: string; ok: false; error: string; retriable?: boolean; viewId?: string; }): RpcResponse; //# sourceMappingURL=v3-rpc-messages.d.ts.map