import { z } from 'zod'; /** * Reports a user-initiated action from a component. * Matches 'action' in specification/v0_9/json/client_to_server.json. */ export declare const A2uiClientActionSchema: z.ZodObject<{ name: z.ZodString; surfaceId: z.ZodString; sourceComponentId: z.ZodString; timestamp: z.ZodString; context: z.ZodRecord; }, "strict", z.ZodTypeAny, { name: string; context: Record; surfaceId: string; sourceComponentId: string; timestamp: string; }, { name: string; context: Record; surfaceId: string; sourceComponentId: string; timestamp: string; }>; /** * Reports a client-side validation failure. */ export declare const A2uiValidationErrorSchema: z.ZodObject<{ code: z.ZodLiteral<"VALIDATION_FAILED">; surfaceId: z.ZodString; path: z.ZodString; message: z.ZodString; }, "strict", z.ZodTypeAny, { path: string; code: "VALIDATION_FAILED"; message: string; surfaceId: string; }, { path: string; code: "VALIDATION_FAILED"; message: string; surfaceId: string; }>; /** * Reports a generic client-side error. */ export declare const A2uiGenericErrorSchema: z.ZodObject<{ code: z.ZodEffects; message: z.ZodString; surfaceId: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ code: z.ZodEffects; message: z.ZodString; surfaceId: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ code: z.ZodEffects; message: z.ZodString; surfaceId: z.ZodString; }, z.ZodTypeAny, "passthrough">>; /** * Reports a client-side error. * Matches 'error' in specification/v0_9/json/client_to_server.json. */ export declare const A2uiClientErrorSchema: z.ZodUnion<[z.ZodObject<{ code: z.ZodLiteral<"VALIDATION_FAILED">; surfaceId: z.ZodString; path: z.ZodString; message: z.ZodString; }, "strict", z.ZodTypeAny, { path: string; code: "VALIDATION_FAILED"; message: string; surfaceId: string; }, { path: string; code: "VALIDATION_FAILED"; message: string; surfaceId: string; }>, z.ZodObject<{ code: z.ZodEffects; message: z.ZodString; surfaceId: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ code: z.ZodEffects; message: z.ZodString; surfaceId: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ code: z.ZodEffects; message: z.ZodString; surfaceId: z.ZodString; }, z.ZodTypeAny, "passthrough">>]>; /** * A message sent from the A2UI client to the server. * Matches specification/v0_9/json/client_to_server.json. */ export declare const A2uiClientMessageSchema: z.ZodIntersection; }, "strip", z.ZodTypeAny, { version: "v0.9"; }, { version: "v0.9"; }>, z.ZodUnion<[z.ZodObject<{ action: z.ZodObject<{ name: z.ZodString; surfaceId: z.ZodString; sourceComponentId: z.ZodString; timestamp: z.ZodString; context: z.ZodRecord; }, "strict", z.ZodTypeAny, { name: string; context: Record; surfaceId: string; sourceComponentId: string; timestamp: string; }, { name: string; context: Record; surfaceId: string; sourceComponentId: string; timestamp: string; }>; }, "strip", z.ZodTypeAny, { action: { name: string; context: Record; surfaceId: string; sourceComponentId: string; timestamp: string; }; }, { action: { name: string; context: Record; surfaceId: string; sourceComponentId: string; timestamp: string; }; }>, z.ZodObject<{ error: z.ZodUnion<[z.ZodObject<{ code: z.ZodLiteral<"VALIDATION_FAILED">; surfaceId: z.ZodString; path: z.ZodString; message: z.ZodString; }, "strict", z.ZodTypeAny, { path: string; code: "VALIDATION_FAILED"; message: string; surfaceId: string; }, { path: string; code: "VALIDATION_FAILED"; message: string; surfaceId: string; }>, z.ZodObject<{ code: z.ZodEffects; message: z.ZodString; surfaceId: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ code: z.ZodEffects; message: z.ZodString; surfaceId: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ code: z.ZodEffects; message: z.ZodString; surfaceId: z.ZodString; }, z.ZodTypeAny, "passthrough">>]>; }, "strip", z.ZodTypeAny, { error: { path: string; code: "VALIDATION_FAILED"; message: string; surfaceId: string; } | z.objectOutputType<{ code: z.ZodEffects; message: z.ZodString; surfaceId: z.ZodString; }, z.ZodTypeAny, "passthrough">; }, { error: { path: string; code: "VALIDATION_FAILED"; message: string; surfaceId: string; } | z.objectInputType<{ code: z.ZodEffects; message: z.ZodString; surfaceId: z.ZodString; }, z.ZodTypeAny, "passthrough">; }>]>>; /** * Schema for the client data model synchronization. * Matches specification/v0_9/json/client_data_model.json. */ export declare const A2uiClientDataModelSchema: z.ZodObject<{ version: z.ZodLiteral<"v0.9">; surfaces: z.ZodRecord, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, "strict", z.ZodTypeAny, { version: "v0.9"; surfaces: Record>; }, { version: "v0.9"; surfaces: Record>; }>; export type A2uiClientAction = z.infer; export type A2uiClientError = z.infer; export type A2uiClientMessage = z.infer; export type A2uiClientDataModel = z.infer; export declare const A2uiClientMessageListSchema: z.ZodArray; }, "strip", z.ZodTypeAny, { version: "v0.9"; }, { version: "v0.9"; }>, z.ZodUnion<[z.ZodObject<{ action: z.ZodObject<{ name: z.ZodString; surfaceId: z.ZodString; sourceComponentId: z.ZodString; timestamp: z.ZodString; context: z.ZodRecord; }, "strict", z.ZodTypeAny, { name: string; context: Record; surfaceId: string; sourceComponentId: string; timestamp: string; }, { name: string; context: Record; surfaceId: string; sourceComponentId: string; timestamp: string; }>; }, "strip", z.ZodTypeAny, { action: { name: string; context: Record; surfaceId: string; sourceComponentId: string; timestamp: string; }; }, { action: { name: string; context: Record; surfaceId: string; sourceComponentId: string; timestamp: string; }; }>, z.ZodObject<{ error: z.ZodUnion<[z.ZodObject<{ code: z.ZodLiteral<"VALIDATION_FAILED">; surfaceId: z.ZodString; path: z.ZodString; message: z.ZodString; }, "strict", z.ZodTypeAny, { path: string; code: "VALIDATION_FAILED"; message: string; surfaceId: string; }, { path: string; code: "VALIDATION_FAILED"; message: string; surfaceId: string; }>, z.ZodObject<{ code: z.ZodEffects; message: z.ZodString; surfaceId: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ code: z.ZodEffects; message: z.ZodString; surfaceId: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ code: z.ZodEffects; message: z.ZodString; surfaceId: z.ZodString; }, z.ZodTypeAny, "passthrough">>]>; }, "strip", z.ZodTypeAny, { error: { path: string; code: "VALIDATION_FAILED"; message: string; surfaceId: string; } | z.objectOutputType<{ code: z.ZodEffects; message: z.ZodString; surfaceId: z.ZodString; }, z.ZodTypeAny, "passthrough">; }, { error: { path: string; code: "VALIDATION_FAILED"; message: string; surfaceId: string; } | z.objectInputType<{ code: z.ZodEffects; message: z.ZodString; surfaceId: z.ZodString; }, z.ZodTypeAny, "passthrough">; }>]>>, "many">; export type A2uiClientMessageList = z.infer; export declare const A2uiClientMessageListWrapperSchema: z.ZodObject<{ messages: z.ZodArray; }, "strip", z.ZodTypeAny, { version: "v0.9"; }, { version: "v0.9"; }>, z.ZodUnion<[z.ZodObject<{ action: z.ZodObject<{ name: z.ZodString; surfaceId: z.ZodString; sourceComponentId: z.ZodString; timestamp: z.ZodString; context: z.ZodRecord; }, "strict", z.ZodTypeAny, { name: string; context: Record; surfaceId: string; sourceComponentId: string; timestamp: string; }, { name: string; context: Record; surfaceId: string; sourceComponentId: string; timestamp: string; }>; }, "strip", z.ZodTypeAny, { action: { name: string; context: Record; surfaceId: string; sourceComponentId: string; timestamp: string; }; }, { action: { name: string; context: Record; surfaceId: string; sourceComponentId: string; timestamp: string; }; }>, z.ZodObject<{ error: z.ZodUnion<[z.ZodObject<{ code: z.ZodLiteral<"VALIDATION_FAILED">; surfaceId: z.ZodString; path: z.ZodString; message: z.ZodString; }, "strict", z.ZodTypeAny, { path: string; code: "VALIDATION_FAILED"; message: string; surfaceId: string; }, { path: string; code: "VALIDATION_FAILED"; message: string; surfaceId: string; }>, z.ZodObject<{ code: z.ZodEffects; message: z.ZodString; surfaceId: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ code: z.ZodEffects; message: z.ZodString; surfaceId: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ code: z.ZodEffects; message: z.ZodString; surfaceId: z.ZodString; }, z.ZodTypeAny, "passthrough">>]>; }, "strip", z.ZodTypeAny, { error: { path: string; code: "VALIDATION_FAILED"; message: string; surfaceId: string; } | z.objectOutputType<{ code: z.ZodEffects; message: z.ZodString; surfaceId: z.ZodString; }, z.ZodTypeAny, "passthrough">; }, { error: { path: string; code: "VALIDATION_FAILED"; message: string; surfaceId: string; } | z.objectInputType<{ code: z.ZodEffects; message: z.ZodString; surfaceId: z.ZodString; }, z.ZodTypeAny, "passthrough">; }>]>>, "many">; }, "strict", z.ZodTypeAny, { messages: ({ version: "v0.9"; } & ({ action: { name: string; context: Record; surfaceId: string; sourceComponentId: string; timestamp: string; }; } | { error: { path: string; code: "VALIDATION_FAILED"; message: string; surfaceId: string; } | z.objectOutputType<{ code: z.ZodEffects; message: z.ZodString; surfaceId: z.ZodString; }, z.ZodTypeAny, "passthrough">; }))[]; }, { messages: ({ version: "v0.9"; } & ({ action: { name: string; context: Record; surfaceId: string; sourceComponentId: string; timestamp: string; }; } | { error: { path: string; code: "VALIDATION_FAILED"; message: string; surfaceId: string; } | z.objectInputType<{ code: z.ZodEffects; message: z.ZodString; surfaceId: z.ZodString; }, z.ZodTypeAny, "passthrough">; }))[]; }>; export type A2uiClientMessageListWrapper = z.infer; //# sourceMappingURL=client-to-server.d.ts.map