import { z } from "zod"; export declare const OTHER_OPTION_VALUE = "other"; export declare const AskModeSchema: z.ZodEnum<["single", "multi"]>; export declare const ASK_STATUSES: readonly ["pending", "answered", "cancelled", "expired", "superseded"]; export declare const AskStatusSchema: z.ZodEnum<["pending", "answered", "cancelled", "expired", "superseded"]>; export declare const ForkReferenceSchema: z.ZodObject<{ agentSessionId: z.ZodOptional; agentSessionPath: z.ZodOptional; leafId: z.ZodOptional; cwd: z.ZodOptional; model: z.ZodOptional; }, "strip", z.ZodTypeAny, { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; }, { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; }>; export declare const AskCreateOptionSchema: z.ZodObject<{ value: z.ZodString; label: z.ZodString; description: z.ZodOptional; impact: z.ZodOptional; }, "strict", z.ZodTypeAny, { value: string; label: string; description?: string | undefined; impact?: string | undefined; }, { value: string; label: string; description?: string | undefined; impact?: string | undefined; }>; export declare const AskOptionProvenanceSchema: z.ZodLiteral<"chat">; export declare const AskOptionSchema: z.ZodObject<{ value: z.ZodString; label: z.ZodString; description: z.ZodOptional; impact: z.ZodOptional; } & { provenance: z.ZodOptional>; }, "strict", z.ZodTypeAny, { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }, { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }>; export declare const ProposedAnswerOptionSchema: z.ZodObject<{ value: z.ZodString; label: z.ZodString; description: z.ZodOptional; impact: z.ZodOptional; } & { provenance: z.ZodLiteral<"chat">; }, "strict", z.ZodTypeAny, { value: string; label: string; provenance: "chat"; description?: string | undefined; impact?: string | undefined; }, { value: string; label: string; provenance: "chat"; description?: string | undefined; impact?: string | undefined; }>; export declare const ProposeAnswerPayloadSchema: z.ZodObject<{ label: z.ZodString; description: z.ZodOptional; impact: z.ZodOptional; }, "strict", z.ZodTypeAny, { label: string; description?: string | undefined; impact?: string | undefined; }, { label: string; description?: string | undefined; impact?: string | undefined; }>; export declare const ProposeAnswerErrorCodeSchema: z.ZodEnum<["request_not_found", "request_terminal", "wrong_owner", "invalid_proposal", "duplicate_option", "option_value_collision", "option_limit_reached", "internal_error"]>; export declare const ProposeAnswerResultSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{ status: z.ZodLiteral<"appended">; option: z.ZodObject<{ value: z.ZodString; label: z.ZodString; description: z.ZodOptional; impact: z.ZodOptional; } & { provenance: z.ZodLiteral<"chat">; }, "strict", z.ZodTypeAny, { value: string; label: string; provenance: "chat"; description?: string | undefined; impact?: string | undefined; }, { value: string; label: string; provenance: "chat"; description?: string | undefined; impact?: string | undefined; }>; }, "strict", z.ZodTypeAny, { status: "appended"; option: { value: string; label: string; provenance: "chat"; description?: string | undefined; impact?: string | undefined; }; }, { status: "appended"; option: { value: string; label: string; provenance: "chat"; description?: string | undefined; impact?: string | undefined; }; }>, z.ZodObject<{ status: z.ZodLiteral<"error">; error: z.ZodObject<{ code: z.ZodEnum<["request_not_found", "request_terminal", "wrong_owner", "invalid_proposal", "duplicate_option", "option_value_collision", "option_limit_reached", "internal_error"]>; message: z.ZodString; }, "strict", z.ZodTypeAny, { code: "request_not_found" | "request_terminal" | "wrong_owner" | "invalid_proposal" | "duplicate_option" | "option_value_collision" | "option_limit_reached" | "internal_error"; message: string; }, { code: "request_not_found" | "request_terminal" | "wrong_owner" | "invalid_proposal" | "duplicate_option" | "option_value_collision" | "option_limit_reached" | "internal_error"; message: string; }>; }, "strict", z.ZodTypeAny, { status: "error"; error: { code: "request_not_found" | "request_terminal" | "wrong_owner" | "invalid_proposal" | "duplicate_option" | "option_value_collision" | "option_limit_reached" | "internal_error"; message: string; }; }, { status: "error"; error: { code: "request_not_found" | "request_terminal" | "wrong_owner" | "invalid_proposal" | "duplicate_option" | "option_value_collision" | "option_limit_reached" | "internal_error"; message: string; }; }>]>; export declare const AskQuestionSchema: z.ZodObject<{ prompt: z.ZodString; ambiguity: z.ZodOptional; }, "strip", z.ZodTypeAny, { prompt: string; ambiguity?: string | undefined; }, { prompt: string; ambiguity?: string | undefined; }>; export declare const AskCreateQuestionSchema: z.ZodObject<{ prompt: z.ZodString; ambiguity: z.ZodEffects; }, "strict", z.ZodTypeAny, { prompt: string; ambiguity: string; }, { prompt: string; ambiguity: string; }>; export declare const AskCreatePayloadSchema: z.ZodObject<{ requestId: z.ZodString; sessionId: z.ZodString; mode: z.ZodEnum<["single", "multi"]>; question: z.ZodObject<{ prompt: z.ZodString; ambiguity: z.ZodEffects; }, "strict", z.ZodTypeAny, { prompt: string; ambiguity: string; }, { prompt: string; ambiguity: string; }>; options: z.ZodArray; impact: z.ZodOptional; }, "strict", z.ZodTypeAny, { value: string; label: string; description?: string | undefined; impact?: string | undefined; }, { value: string; label: string; description?: string | undefined; impact?: string | undefined; }>, "many">; images: z.ZodOptional; caption: z.ZodOptional; uploadId: z.ZodString; }, "strict", z.ZodTypeAny, { alt: string; uploadId: string; caption?: string | undefined; }, { alt: string; uploadId: string; caption?: string | undefined; }>, "many">>; forkReference: z.ZodOptional; agentSessionPath: z.ZodOptional; leafId: z.ZodOptional; cwd: z.ZodOptional; model: z.ZodOptional; }, "strip", z.ZodTypeAny, { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; }, { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; }>>; expiresAt: z.ZodOptional; parentQuestionId: z.ZodOptional; repository: z.ZodOptional; machineId: z.ZodOptional; commonDirectory: z.ZodOptional; }, "strict", z.ZodTypeAny, { repositoryId: string; remote?: string | undefined; machineId?: string | undefined; commonDirectory?: string | undefined; }, { repositoryId: string; remote?: string | undefined; machineId?: string | undefined; commonDirectory?: string | undefined; }>>; worktree: z.ZodOptional>; feature: z.ZodOptional; }, "strict", z.ZodTypeAny, { featureId: string; name?: string | undefined; }, { featureId: string; name?: string | undefined; }>>; }, "strict", z.ZodTypeAny, { options: { value: string; label: string; description?: string | undefined; impact?: string | undefined; }[]; requestId: string; sessionId: string; mode: "single" | "multi"; question: { prompt: string; ambiguity: string; }; images?: { alt: string; uploadId: string; caption?: string | undefined; }[] | undefined; forkReference?: { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; } | undefined; expiresAt?: string | undefined; parentQuestionId?: string | undefined; repository?: { repositoryId: string; remote?: string | undefined; machineId?: string | undefined; commonDirectory?: string | undefined; } | undefined; worktree?: { path: string; machineId: string; worktreeId: string; } | undefined; feature?: { featureId: string; name?: string | undefined; } | undefined; }, { options: { value: string; label: string; description?: string | undefined; impact?: string | undefined; }[]; requestId: string; sessionId: string; mode: "single" | "multi"; question: { prompt: string; ambiguity: string; }; images?: { alt: string; uploadId: string; caption?: string | undefined; }[] | undefined; forkReference?: { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; } | undefined; expiresAt?: string | undefined; parentQuestionId?: string | undefined; repository?: { repositoryId: string; remote?: string | undefined; machineId?: string | undefined; commonDirectory?: string | undefined; } | undefined; worktree?: { path: string; machineId: string; worktreeId: string; } | undefined; feature?: { featureId: string; name?: string | undefined; } | undefined; }>; export declare const AskQuestionDraftSchema: z.ZodEffects>; question: z.ZodObject<{ prompt: z.ZodString; ambiguity: z.ZodEffects; }, "strict", z.ZodTypeAny, { prompt: string; ambiguity: string; }, { prompt: string; ambiguity: string; }>; options: z.ZodArray; impact: z.ZodOptional; }, "strict", z.ZodTypeAny, { value: string; label: string; description?: string | undefined; impact?: string | undefined; }, { value: string; label: string; description?: string | undefined; impact?: string | undefined; }>, "many">; images: z.ZodOptional; caption: z.ZodOptional; uploadId: z.ZodString; }, "strict", z.ZodTypeAny, { alt: string; uploadId: string; caption?: string | undefined; }, { alt: string; uploadId: string; caption?: string | undefined; }>, "many">>; forkReference: z.ZodOptional; agentSessionPath: z.ZodOptional; leafId: z.ZodOptional; cwd: z.ZodOptional; model: z.ZodOptional; }, "strip", z.ZodTypeAny, { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; }, { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; }>>; expiresAt: z.ZodOptional; parentQuestionId: z.ZodOptional; parentLocalRef: z.ZodOptional; }, "strict", z.ZodTypeAny, { options: { value: string; label: string; description?: string | undefined; impact?: string | undefined; }[]; requestId: string; mode: "single" | "multi"; question: { prompt: string; ambiguity: string; }; localRef: string; images?: { alt: string; uploadId: string; caption?: string | undefined; }[] | undefined; forkReference?: { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; } | undefined; expiresAt?: string | undefined; parentQuestionId?: string | undefined; parentLocalRef?: string | undefined; }, { options: { value: string; label: string; description?: string | undefined; impact?: string | undefined; }[]; requestId: string; question: { prompt: string; ambiguity: string; }; localRef: string; mode?: "single" | "multi" | undefined; images?: { alt: string; uploadId: string; caption?: string | undefined; }[] | undefined; forkReference?: { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; } | undefined; expiresAt?: string | undefined; parentQuestionId?: string | undefined; parentLocalRef?: string | undefined; }>, { options: { value: string; label: string; description?: string | undefined; impact?: string | undefined; }[]; requestId: string; mode: "single" | "multi"; question: { prompt: string; ambiguity: string; }; localRef: string; images?: { alt: string; uploadId: string; caption?: string | undefined; }[] | undefined; forkReference?: { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; } | undefined; expiresAt?: string | undefined; parentQuestionId?: string | undefined; parentLocalRef?: string | undefined; }, { options: { value: string; label: string; description?: string | undefined; impact?: string | undefined; }[]; requestId: string; question: { prompt: string; ambiguity: string; }; localRef: string; mode?: "single" | "multi" | undefined; images?: { alt: string; uploadId: string; caption?: string | undefined; }[] | undefined; forkReference?: { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; } | undefined; expiresAt?: string | undefined; parentQuestionId?: string | undefined; parentLocalRef?: string | undefined; }>; export declare const AskBatchQuestionDraftSchema: z.ZodEffects>; question: z.ZodObject<{ prompt: z.ZodString; ambiguity: z.ZodEffects; }, "strict", z.ZodTypeAny, { prompt: string; ambiguity: string; }, { prompt: string; ambiguity: string; }>; options: z.ZodArray; impact: z.ZodOptional; }, "strict", z.ZodTypeAny, { value: string; label: string; description?: string | undefined; impact?: string | undefined; }, { value: string; label: string; description?: string | undefined; impact?: string | undefined; }>, "many">; images: z.ZodOptional; caption: z.ZodOptional; uploadId: z.ZodString; }, "strict", z.ZodTypeAny, { alt: string; uploadId: string; caption?: string | undefined; }, { alt: string; uploadId: string; caption?: string | undefined; }>, "many">>; forkReference: z.ZodOptional; agentSessionPath: z.ZodOptional; leafId: z.ZodOptional; cwd: z.ZodOptional; model: z.ZodOptional; }, "strip", z.ZodTypeAny, { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; }, { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; }>>; expiresAt: z.ZodOptional; parentQuestionId: z.ZodOptional; parentLocalRef: z.ZodOptional; }, "strict", z.ZodTypeAny, { options: { value: string; label: string; description?: string | undefined; impact?: string | undefined; }[]; requestId: string; mode: "single" | "multi"; question: { prompt: string; ambiguity: string; }; localRef: string; images?: { alt: string; uploadId: string; caption?: string | undefined; }[] | undefined; forkReference?: { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; } | undefined; expiresAt?: string | undefined; parentQuestionId?: string | undefined; parentLocalRef?: string | undefined; }, { options: { value: string; label: string; description?: string | undefined; impact?: string | undefined; }[]; requestId: string; question: { prompt: string; ambiguity: string; }; localRef: string; mode?: "single" | "multi" | undefined; images?: { alt: string; uploadId: string; caption?: string | undefined; }[] | undefined; forkReference?: { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; } | undefined; expiresAt?: string | undefined; parentQuestionId?: string | undefined; parentLocalRef?: string | undefined; }>, { options: { value: string; label: string; description?: string | undefined; impact?: string | undefined; }[]; requestId: string; mode: "single" | "multi"; question: { prompt: string; ambiguity: string; }; localRef: string; images?: { alt: string; uploadId: string; caption?: string | undefined; }[] | undefined; forkReference?: { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; } | undefined; expiresAt?: string | undefined; parentQuestionId?: string | undefined; parentLocalRef?: string | undefined; }, { options: { value: string; label: string; description?: string | undefined; impact?: string | undefined; }[]; requestId: string; question: { prompt: string; ambiguity: string; }; localRef: string; mode?: "single" | "multi" | undefined; images?: { alt: string; uploadId: string; caption?: string | undefined; }[] | undefined; forkReference?: { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; } | undefined; expiresAt?: string | undefined; parentQuestionId?: string | undefined; parentLocalRef?: string | undefined; }>; export declare const AskPostboxInputSchema: z.ZodUnion<[z.ZodObject<{ mode: z.ZodLiteral<"single">; question: z.ZodEffects>; question: z.ZodObject<{ prompt: z.ZodString; ambiguity: z.ZodEffects; }, "strict", z.ZodTypeAny, { prompt: string; ambiguity: string; }, { prompt: string; ambiguity: string; }>; options: z.ZodArray; impact: z.ZodOptional; }, "strict", z.ZodTypeAny, { value: string; label: string; description?: string | undefined; impact?: string | undefined; }, { value: string; label: string; description?: string | undefined; impact?: string | undefined; }>, "many">; images: z.ZodOptional; caption: z.ZodOptional; uploadId: z.ZodString; }, "strict", z.ZodTypeAny, { alt: string; uploadId: string; caption?: string | undefined; }, { alt: string; uploadId: string; caption?: string | undefined; }>, "many">>; forkReference: z.ZodOptional; agentSessionPath: z.ZodOptional; leafId: z.ZodOptional; cwd: z.ZodOptional; model: z.ZodOptional; }, "strip", z.ZodTypeAny, { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; }, { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; }>>; expiresAt: z.ZodOptional; parentQuestionId: z.ZodOptional; parentLocalRef: z.ZodOptional; }, "strict", z.ZodTypeAny, { options: { value: string; label: string; description?: string | undefined; impact?: string | undefined; }[]; requestId: string; mode: "single" | "multi"; question: { prompt: string; ambiguity: string; }; localRef: string; images?: { alt: string; uploadId: string; caption?: string | undefined; }[] | undefined; forkReference?: { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; } | undefined; expiresAt?: string | undefined; parentQuestionId?: string | undefined; parentLocalRef?: string | undefined; }, { options: { value: string; label: string; description?: string | undefined; impact?: string | undefined; }[]; requestId: string; question: { prompt: string; ambiguity: string; }; localRef: string; mode?: "single" | "multi" | undefined; images?: { alt: string; uploadId: string; caption?: string | undefined; }[] | undefined; forkReference?: { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; } | undefined; expiresAt?: string | undefined; parentQuestionId?: string | undefined; parentLocalRef?: string | undefined; }>, { options: { value: string; label: string; description?: string | undefined; impact?: string | undefined; }[]; requestId: string; mode: "single" | "multi"; question: { prompt: string; ambiguity: string; }; localRef: string; images?: { alt: string; uploadId: string; caption?: string | undefined; }[] | undefined; forkReference?: { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; } | undefined; expiresAt?: string | undefined; parentQuestionId?: string | undefined; parentLocalRef?: string | undefined; }, { options: { value: string; label: string; description?: string | undefined; impact?: string | undefined; }[]; requestId: string; question: { prompt: string; ambiguity: string; }; localRef: string; mode?: "single" | "multi" | undefined; images?: { alt: string; uploadId: string; caption?: string | undefined; }[] | undefined; forkReference?: { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; } | undefined; expiresAt?: string | undefined; parentQuestionId?: string | undefined; parentLocalRef?: string | undefined; }>; }, "strict", z.ZodTypeAny, { mode: "single"; question: { options: { value: string; label: string; description?: string | undefined; impact?: string | undefined; }[]; requestId: string; mode: "single" | "multi"; question: { prompt: string; ambiguity: string; }; localRef: string; images?: { alt: string; uploadId: string; caption?: string | undefined; }[] | undefined; forkReference?: { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; } | undefined; expiresAt?: string | undefined; parentQuestionId?: string | undefined; parentLocalRef?: string | undefined; }; }, { mode: "single"; question: { options: { value: string; label: string; description?: string | undefined; impact?: string | undefined; }[]; requestId: string; question: { prompt: string; ambiguity: string; }; localRef: string; mode?: "single" | "multi" | undefined; images?: { alt: string; uploadId: string; caption?: string | undefined; }[] | undefined; forkReference?: { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; } | undefined; expiresAt?: string | undefined; parentQuestionId?: string | undefined; parentLocalRef?: string | undefined; }; }>, z.ZodEffects; questions: z.ZodArray>; question: z.ZodObject<{ prompt: z.ZodString; ambiguity: z.ZodEffects; }, "strict", z.ZodTypeAny, { prompt: string; ambiguity: string; }, { prompt: string; ambiguity: string; }>; options: z.ZodArray; impact: z.ZodOptional; }, "strict", z.ZodTypeAny, { value: string; label: string; description?: string | undefined; impact?: string | undefined; }, { value: string; label: string; description?: string | undefined; impact?: string | undefined; }>, "many">; images: z.ZodOptional; caption: z.ZodOptional; uploadId: z.ZodString; }, "strict", z.ZodTypeAny, { alt: string; uploadId: string; caption?: string | undefined; }, { alt: string; uploadId: string; caption?: string | undefined; }>, "many">>; forkReference: z.ZodOptional; agentSessionPath: z.ZodOptional; leafId: z.ZodOptional; cwd: z.ZodOptional; model: z.ZodOptional; }, "strip", z.ZodTypeAny, { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; }, { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; }>>; expiresAt: z.ZodOptional; parentQuestionId: z.ZodOptional; parentLocalRef: z.ZodOptional; }, "strict", z.ZodTypeAny, { options: { value: string; label: string; description?: string | undefined; impact?: string | undefined; }[]; requestId: string; mode: "single" | "multi"; question: { prompt: string; ambiguity: string; }; localRef: string; images?: { alt: string; uploadId: string; caption?: string | undefined; }[] | undefined; forkReference?: { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; } | undefined; expiresAt?: string | undefined; parentQuestionId?: string | undefined; parentLocalRef?: string | undefined; }, { options: { value: string; label: string; description?: string | undefined; impact?: string | undefined; }[]; requestId: string; question: { prompt: string; ambiguity: string; }; localRef: string; mode?: "single" | "multi" | undefined; images?: { alt: string; uploadId: string; caption?: string | undefined; }[] | undefined; forkReference?: { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; } | undefined; expiresAt?: string | undefined; parentQuestionId?: string | undefined; parentLocalRef?: string | undefined; }>, { options: { value: string; label: string; description?: string | undefined; impact?: string | undefined; }[]; requestId: string; mode: "single" | "multi"; question: { prompt: string; ambiguity: string; }; localRef: string; images?: { alt: string; uploadId: string; caption?: string | undefined; }[] | undefined; forkReference?: { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; } | undefined; expiresAt?: string | undefined; parentQuestionId?: string | undefined; parentLocalRef?: string | undefined; }, { options: { value: string; label: string; description?: string | undefined; impact?: string | undefined; }[]; requestId: string; question: { prompt: string; ambiguity: string; }; localRef: string; mode?: "single" | "multi" | undefined; images?: { alt: string; uploadId: string; caption?: string | undefined; }[] | undefined; forkReference?: { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; } | undefined; expiresAt?: string | undefined; parentQuestionId?: string | undefined; parentLocalRef?: string | undefined; }>, "many">; }, "strict", z.ZodTypeAny, { mode: "batch"; questions: { options: { value: string; label: string; description?: string | undefined; impact?: string | undefined; }[]; requestId: string; mode: "single" | "multi"; question: { prompt: string; ambiguity: string; }; localRef: string; images?: { alt: string; uploadId: string; caption?: string | undefined; }[] | undefined; forkReference?: { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; } | undefined; expiresAt?: string | undefined; parentQuestionId?: string | undefined; parentLocalRef?: string | undefined; }[]; }, { mode: "batch"; questions: { options: { value: string; label: string; description?: string | undefined; impact?: string | undefined; }[]; requestId: string; question: { prompt: string; ambiguity: string; }; localRef: string; mode?: "single" | "multi" | undefined; images?: { alt: string; uploadId: string; caption?: string | undefined; }[] | undefined; forkReference?: { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; } | undefined; expiresAt?: string | undefined; parentQuestionId?: string | undefined; parentLocalRef?: string | undefined; }[]; }>, { mode: "batch"; questions: { options: { value: string; label: string; description?: string | undefined; impact?: string | undefined; }[]; requestId: string; mode: "single" | "multi"; question: { prompt: string; ambiguity: string; }; localRef: string; images?: { alt: string; uploadId: string; caption?: string | undefined; }[] | undefined; forkReference?: { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; } | undefined; expiresAt?: string | undefined; parentQuestionId?: string | undefined; parentLocalRef?: string | undefined; }[]; }, { mode: "batch"; questions: { options: { value: string; label: string; description?: string | undefined; impact?: string | undefined; }[]; requestId: string; question: { prompt: string; ambiguity: string; }; localRef: string; mode?: "single" | "multi" | undefined; images?: { alt: string; uploadId: string; caption?: string | undefined; }[] | undefined; forkReference?: { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; } | undefined; expiresAt?: string | undefined; parentQuestionId?: string | undefined; parentLocalRef?: string | undefined; }[]; }>]>; export declare const AskBatchRejectionCodeSchema: z.ZodEnum<["forward_parent_reference", "parent_not_found", "child_limit_reached", "depth_limit_reached", "batch_aborted", "invalid_draft", "image_count_limit", "image_description", "image_format", "image_animated", "image_invalid", "image_dimension_limit", "image_byte_limit", "image_total_limit", "image_busy", "image_not_regular", "image_unreadable", "image_file_changed", "image_upload_failed", "image_target_unavailable", "image_target_changed", "image_claim_expired", "image_storage_unavailable", "image_unavailable"]>; export declare const AskBatchReceiptSchema: z.ZodObject<{ status: z.ZodEnum<["created", "partial", "rejected"]>; items: z.ZodArray; questionId: z.ZodString; revision: z.ZodNumber; ownerRevision: z.ZodNumber; questionStatus: z.ZodEnum<["pending", "answered", "cancelled", "expired", "superseded"]>; disposition: z.ZodEnum<["created", "idempotent"]>; nudge: z.ZodOptional; }, "strict", z.ZodTypeAny, { status: "created"; localRef: string; questionId: string; revision: number; ownerRevision: number; questionStatus: "pending" | "answered" | "cancelled" | "expired" | "superseded"; disposition: "created" | "idempotent"; nudge?: string | undefined; }, { status: "created"; localRef: string; questionId: string; revision: number; ownerRevision: number; questionStatus: "pending" | "answered" | "cancelled" | "expired" | "superseded"; disposition: "created" | "idempotent"; nudge?: string | undefined; }>, z.ZodObject<{ localRef: z.ZodString; status: z.ZodLiteral<"rejected">; reason: z.ZodObject<{ code: z.ZodEnum<["forward_parent_reference", "parent_not_found", "child_limit_reached", "depth_limit_reached", "batch_aborted", "invalid_draft", "image_count_limit", "image_description", "image_format", "image_animated", "image_invalid", "image_dimension_limit", "image_byte_limit", "image_total_limit", "image_busy", "image_not_regular", "image_unreadable", "image_file_changed", "image_upload_failed", "image_target_unavailable", "image_target_changed", "image_claim_expired", "image_storage_unavailable", "image_unavailable"]>; message: z.ZodString; }, "strict", z.ZodTypeAny, { code: "image_count_limit" | "image_description" | "image_format" | "image_animated" | "image_invalid" | "image_dimension_limit" | "image_byte_limit" | "image_total_limit" | "image_busy" | "image_not_regular" | "image_unreadable" | "image_file_changed" | "image_upload_failed" | "image_target_unavailable" | "image_target_changed" | "image_claim_expired" | "image_storage_unavailable" | "image_unavailable" | "forward_parent_reference" | "parent_not_found" | "child_limit_reached" | "depth_limit_reached" | "batch_aborted" | "invalid_draft"; message: string; }, { code: "image_count_limit" | "image_description" | "image_format" | "image_animated" | "image_invalid" | "image_dimension_limit" | "image_byte_limit" | "image_total_limit" | "image_busy" | "image_not_regular" | "image_unreadable" | "image_file_changed" | "image_upload_failed" | "image_target_unavailable" | "image_target_changed" | "image_claim_expired" | "image_storage_unavailable" | "image_unavailable" | "forward_parent_reference" | "parent_not_found" | "child_limit_reached" | "depth_limit_reached" | "batch_aborted" | "invalid_draft"; message: string; }>; }, "strict", z.ZodTypeAny, { status: "rejected"; localRef: string; reason: { code: "image_count_limit" | "image_description" | "image_format" | "image_animated" | "image_invalid" | "image_dimension_limit" | "image_byte_limit" | "image_total_limit" | "image_busy" | "image_not_regular" | "image_unreadable" | "image_file_changed" | "image_upload_failed" | "image_target_unavailable" | "image_target_changed" | "image_claim_expired" | "image_storage_unavailable" | "image_unavailable" | "forward_parent_reference" | "parent_not_found" | "child_limit_reached" | "depth_limit_reached" | "batch_aborted" | "invalid_draft"; message: string; }; }, { status: "rejected"; localRef: string; reason: { code: "image_count_limit" | "image_description" | "image_format" | "image_animated" | "image_invalid" | "image_dimension_limit" | "image_byte_limit" | "image_total_limit" | "image_busy" | "image_not_regular" | "image_unreadable" | "image_file_changed" | "image_upload_failed" | "image_target_unavailable" | "image_target_changed" | "image_claim_expired" | "image_storage_unavailable" | "image_unavailable" | "forward_parent_reference" | "parent_not_found" | "child_limit_reached" | "depth_limit_reached" | "batch_aborted" | "invalid_draft"; message: string; }; }>]>, "many">; }, "strict", z.ZodTypeAny, { status: "created" | "rejected" | "partial"; items: ({ status: "created"; localRef: string; questionId: string; revision: number; ownerRevision: number; questionStatus: "pending" | "answered" | "cancelled" | "expired" | "superseded"; disposition: "created" | "idempotent"; nudge?: string | undefined; } | { status: "rejected"; localRef: string; reason: { code: "image_count_limit" | "image_description" | "image_format" | "image_animated" | "image_invalid" | "image_dimension_limit" | "image_byte_limit" | "image_total_limit" | "image_busy" | "image_not_regular" | "image_unreadable" | "image_file_changed" | "image_upload_failed" | "image_target_unavailable" | "image_target_changed" | "image_claim_expired" | "image_storage_unavailable" | "image_unavailable" | "forward_parent_reference" | "parent_not_found" | "child_limit_reached" | "depth_limit_reached" | "batch_aborted" | "invalid_draft"; message: string; }; })[]; }, { status: "created" | "rejected" | "partial"; items: ({ status: "created"; localRef: string; questionId: string; revision: number; ownerRevision: number; questionStatus: "pending" | "answered" | "cancelled" | "expired" | "superseded"; disposition: "created" | "idempotent"; nudge?: string | undefined; } | { status: "rejected"; localRef: string; reason: { code: "image_count_limit" | "image_description" | "image_format" | "image_animated" | "image_invalid" | "image_dimension_limit" | "image_byte_limit" | "image_total_limit" | "image_busy" | "image_not_regular" | "image_unreadable" | "image_file_changed" | "image_upload_failed" | "image_target_unavailable" | "image_target_changed" | "image_claim_expired" | "image_storage_unavailable" | "image_unavailable" | "forward_parent_reference" | "parent_not_found" | "child_limit_reached" | "depth_limit_reached" | "batch_aborted" | "invalid_draft"; message: string; }; })[]; }>; export declare const AskAnswerEventSchema: z.ZodObject<{ questionId: z.ZodString; affectedDescendantIds: z.ZodArray; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ questionId: z.ZodString; affectedDescendantIds: z.ZodArray; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ questionId: z.ZodString; affectedDescendantIds: z.ZodArray; }, z.ZodTypeAny, "passthrough">>; export declare const AskAnswerPayloadSchema: z.ZodObject<{ expectedRevision: z.ZodOptional; selectedValues: z.ZodArray; note: z.ZodOptional; }, "strict", z.ZodTypeAny, { selectedValues: string[]; expectedRevision?: number | undefined; note?: string | undefined; }, { selectedValues: string[]; expectedRevision?: number | undefined; note?: string | undefined; }>; export declare const UpdateQuestionPayloadSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{ action: z.ZodLiteral<"revise">; expectedRevision: z.ZodNumber; expectedOwnerRevision: z.ZodNumber; question: z.ZodObject<{ prompt: z.ZodString; ambiguity: z.ZodEffects; }, "strict", z.ZodTypeAny, { prompt: string; ambiguity: string; }, { prompt: string; ambiguity: string; }>; images: z.ZodOptional; caption: z.ZodOptional; uploadId: z.ZodString; }, "strict", z.ZodTypeAny, { alt: string; uploadId: string; caption?: string | undefined; }, { alt: string; uploadId: string; caption?: string | undefined; }>, "many">>; options: z.ZodOptional; impact: z.ZodOptional; }, "strict", z.ZodTypeAny, { value: string; label: string; description?: string | undefined; impact?: string | undefined; }, { value: string; label: string; description?: string | undefined; impact?: string | undefined; }>, "many">>; }, "strict", z.ZodTypeAny, { action: "revise"; question: { prompt: string; ambiguity: string; }; expectedRevision: number; expectedOwnerRevision: number; options?: { value: string; label: string; description?: string | undefined; impact?: string | undefined; }[] | undefined; images?: { alt: string; uploadId: string; caption?: string | undefined; }[] | undefined; }, { action: "revise"; question: { prompt: string; ambiguity: string; }; expectedRevision: number; expectedOwnerRevision: number; options?: { value: string; label: string; description?: string | undefined; impact?: string | undefined; }[] | undefined; images?: { alt: string; uploadId: string; caption?: string | undefined; }[] | undefined; }>, z.ZodObject<{ action: z.ZodLiteral<"cancel">; expectedRevision: z.ZodNumber; expectedOwnerRevision: z.ZodNumber; note: z.ZodOptional; }, "strict", z.ZodTypeAny, { action: "cancel"; expectedRevision: number; expectedOwnerRevision: number; note?: string | undefined; }, { action: "cancel"; expectedRevision: number; expectedOwnerRevision: number; note?: string | undefined; }>, z.ZodObject<{ action: z.ZodLiteral<"supersede">; expectedRevision: z.ZodNumber; expectedOwnerRevision: z.ZodNumber; replacementQuestionId: z.ZodString; }, "strict", z.ZodTypeAny, { action: "supersede"; expectedRevision: number; expectedOwnerRevision: number; replacementQuestionId: string; }, { action: "supersede"; expectedRevision: number; expectedOwnerRevision: number; replacementQuestionId: string; }>, z.ZodObject<{ action: z.ZodLiteral<"reparent">; expectedRevision: z.ZodNumber; expectedOwnerRevision: z.ZodNumber; parentQuestionId: z.ZodNullable; }, "strict", z.ZodTypeAny, { action: "reparent"; parentQuestionId: string | null; expectedRevision: number; expectedOwnerRevision: number; }, { action: "reparent"; parentQuestionId: string | null; expectedRevision: number; expectedOwnerRevision: number; }>, z.ZodObject<{ action: z.ZodLiteral<"transfer">; expectedRevision: z.ZodNumber; expectedOwnerRevision: z.ZodNumber; expectedOwner: z.ZodObject<{ harness: z.ZodEnum<["pi", "codex", "claude-code", "legacy"]>; ownerId: z.ZodString; }, "strict", z.ZodTypeAny, { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }, { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }>; owner: z.ZodObject<{ harness: z.ZodEnum<["pi", "codex", "claude-code", "legacy"]>; ownerId: z.ZodString; }, "strict", z.ZodTypeAny, { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }, { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }>; }, "strict", z.ZodTypeAny, { action: "transfer"; expectedRevision: number; expectedOwnerRevision: number; expectedOwner: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; owner: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; }, { action: "transfer"; expectedRevision: number; expectedOwnerRevision: number; expectedOwner: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; owner: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; }>, z.ZodObject<{ action: z.ZodLiteral<"takeover">; expectedRevision: z.ZodNumber; expectedOwnerRevision: z.ZodNumber; expectedOwner: z.ZodObject<{ harness: z.ZodEnum<["pi", "codex", "claude-code", "legacy"]>; ownerId: z.ZodString; }, "strict", z.ZodTypeAny, { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }, { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }>; }, "strict", z.ZodTypeAny, { action: "takeover"; expectedRevision: number; expectedOwnerRevision: number; expectedOwner: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; }, { action: "takeover"; expectedRevision: number; expectedOwnerRevision: number; expectedOwner: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; }>]>; export declare const QuestionResolutionSchema: z.ZodUnion<[z.ZodObject<{ kind: z.ZodLiteral<"answer">; answerId: z.ZodString; questionRevision: z.ZodNumber; answer: z.ZodArray; note: z.ZodOptional; resolvedAt: z.ZodString; firstRead: z.ZodNullable; readAt: z.ZodString; }, "strict", z.ZodTypeAny, { reader: { harness: string; ownerId: string; }; readAt: string; }, { reader: { harness: string; ownerId: string; }; readAt: string; }>>; }, "strict", z.ZodTypeAny, { kind: "answer"; answer: string[]; answerId: string; questionRevision: number; resolvedAt: string; firstRead: { reader: { harness: string; ownerId: string; }; readAt: string; } | null; note?: string | undefined; }, { kind: "answer"; answer: string[]; answerId: string; questionRevision: number; resolvedAt: string; firstRead: { reader: { harness: string; ownerId: string; }; readAt: string; } | null; note?: string | undefined; }>, z.ZodObject<{ kind: z.ZodLiteral<"lifecycle">; status: z.ZodLiteral<"cancelled">; note: z.ZodOptional; resolvedAt: z.ZodString; }, "strict", z.ZodTypeAny, { status: "cancelled"; kind: "lifecycle"; resolvedAt: string; note?: string | undefined; }, { status: "cancelled"; kind: "lifecycle"; resolvedAt: string; note?: string | undefined; }>, z.ZodObject<{ kind: z.ZodLiteral<"lifecycle">; status: z.ZodLiteral<"expired">; note: z.ZodOptional; resolvedAt: z.ZodString; }, "strict", z.ZodTypeAny, { status: "expired"; kind: "lifecycle"; resolvedAt: string; note?: string | undefined; }, { status: "expired"; kind: "lifecycle"; resolvedAt: string; note?: string | undefined; }>, z.ZodObject<{ kind: z.ZodLiteral<"lifecycle">; status: z.ZodLiteral<"superseded">; replacementQuestionId: z.ZodString; resolvedAt: z.ZodString; }, "strict", z.ZodTypeAny, { status: "superseded"; replacementQuestionId: string; kind: "lifecycle"; resolvedAt: string; }, { status: "superseded"; replacementQuestionId: string; kind: "lifecycle"; resolvedAt: string; }>]>; export declare const QuestionRevisionSnapshotSchema: z.ZodObject<{ revision: z.ZodNumber; actor: z.ZodObject<{ harness: z.ZodString; ownerId: z.ZodString; }, "strict", z.ZodTypeAny, { harness: string; ownerId: string; }, { harness: string; ownerId: string; }>; at: z.ZodString; } & { question: z.ZodObject<{ prompt: z.ZodString; ambiguity: z.ZodOptional; }, "strip", z.ZodTypeAny, { prompt: string; ambiguity?: string | undefined; }, { prompt: string; ambiguity?: string | undefined; }>; options: z.ZodArray; impact: z.ZodOptional; } & { provenance: z.ZodOptional>; }, "strict", z.ZodTypeAny, { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }, { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }>, "many">; images: z.ZodDefault; caption: z.ZodOptional; imageId: z.ZodString; mediaType: z.ZodEnum<["image/jpeg", "image/png", "image/webp"]>; byteSize: z.ZodNumber; width: z.ZodNumber; height: z.ZodNumber; }, "strict", z.ZodTypeAny, { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }, { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }>, { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }, { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }>, "many">>; }, "strict", z.ZodTypeAny, { options: { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }[]; at: string; question: { prompt: string; ambiguity?: string | undefined; }; images: { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }[]; revision: number; actor: { harness: string; ownerId: string; }; }, { options: { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }[]; at: string; question: { prompt: string; ambiguity?: string | undefined; }; revision: number; actor: { harness: string; ownerId: string; }; images?: { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }[] | undefined; }>; export declare const QuestionContentRevisionSchema: z.ZodEffects; at: z.ZodString; } & { question: z.ZodOptional; }, "strip", z.ZodTypeAny, { prompt: string; ambiguity?: string | undefined; }, { prompt: string; ambiguity?: string | undefined; }>>; options: z.ZodOptional; impact: z.ZodOptional; } & { provenance: z.ZodOptional>; }, "strict", z.ZodTypeAny, { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }, { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }>, "many">>; images: z.ZodOptional; caption: z.ZodOptional; imageId: z.ZodString; mediaType: z.ZodEnum<["image/jpeg", "image/png", "image/webp"]>; byteSize: z.ZodNumber; width: z.ZodNumber; height: z.ZodNumber; }, "strict", z.ZodTypeAny, { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }, { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }>, { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }, { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }>, "many">>; }, "strict", z.ZodTypeAny, { at: string; revision: number; actor: { harness: string; ownerId: string; }; options?: { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }[] | undefined; question?: { prompt: string; ambiguity?: string | undefined; } | undefined; images?: { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }[] | undefined; }, { at: string; revision: number; actor: { harness: string; ownerId: string; }; options?: { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }[] | undefined; question?: { prompt: string; ambiguity?: string | undefined; } | undefined; images?: { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }[] | undefined; }>, { at: string; revision: number; actor: { harness: string; ownerId: string; }; options?: { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }[] | undefined; question?: { prompt: string; ambiguity?: string | undefined; } | undefined; images?: { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }[] | undefined; }, { at: string; revision: number; actor: { harness: string; ownerId: string; }; options?: { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }[] | undefined; question?: { prompt: string; ambiguity?: string | undefined; } | undefined; images?: { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }[] | undefined; }>; export declare const QuestionNonContentEventSchema: z.ZodUnion<[z.ZodObject<{ revision: z.ZodNumber; actor: z.ZodObject<{ harness: z.ZodString; ownerId: z.ZodString; }, "strict", z.ZodTypeAny, { harness: string; ownerId: string; }, { harness: string; ownerId: string; }>; at: z.ZodString; } & { type: z.ZodLiteral<"parent_changed">; parentQuestionId: z.ZodNullable; }, "strict", z.ZodTypeAny, { type: "parent_changed"; at: string; parentQuestionId: string | null; revision: number; actor: { harness: string; ownerId: string; }; }, { type: "parent_changed"; at: string; parentQuestionId: string | null; revision: number; actor: { harness: string; ownerId: string; }; }>, z.ZodObject<{ revision: z.ZodNumber; actor: z.ZodObject<{ harness: z.ZodString; ownerId: z.ZodString; }, "strict", z.ZodTypeAny, { harness: string; ownerId: string; }, { harness: string; ownerId: string; }>; at: z.ZodString; } & { type: z.ZodEnum<["cancelled", "answered", "expired"]>; }, "strict", z.ZodTypeAny, { type: "answered" | "cancelled" | "expired"; at: string; revision: number; actor: { harness: string; ownerId: string; }; }, { type: "answered" | "cancelled" | "expired"; at: string; revision: number; actor: { harness: string; ownerId: string; }; }>, z.ZodObject<{ revision: z.ZodNumber; actor: z.ZodObject<{ harness: z.ZodString; ownerId: z.ZodString; }, "strict", z.ZodTypeAny, { harness: string; ownerId: string; }, { harness: string; ownerId: string; }>; at: z.ZodString; } & { type: z.ZodLiteral<"superseded">; replacementQuestionId: z.ZodString; }, "strict", z.ZodTypeAny, { type: "superseded"; at: string; revision: number; replacementQuestionId: string; actor: { harness: string; ownerId: string; }; }, { type: "superseded"; at: string; revision: number; replacementQuestionId: string; actor: { harness: string; ownerId: string; }; }>, z.ZodObject<{ revision: z.ZodNumber; actor: z.ZodObject<{ harness: z.ZodString; ownerId: z.ZodString; }, "strict", z.ZodTypeAny, { harness: string; ownerId: string; }, { harness: string; ownerId: string; }>; at: z.ZodString; } & { type: z.ZodLiteral<"owner_changed">; ownerRevision: z.ZodNumber; previousOwner: z.ZodObject<{ harness: z.ZodEnum<["pi", "codex", "claude-code", "legacy"]>; ownerId: z.ZodString; }, "strict", z.ZodTypeAny, { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }, { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }>; owner: z.ZodObject<{ harness: z.ZodEnum<["pi", "codex", "claude-code", "legacy"]>; ownerId: z.ZodString; }, "strict", z.ZodTypeAny, { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }, { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }>; reason: z.ZodEnum<["transfer", "takeover"]>; }, "strict", z.ZodTypeAny, { type: "owner_changed"; at: string; revision: number; ownerRevision: number; reason: "transfer" | "takeover"; owner: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; actor: { harness: string; ownerId: string; }; previousOwner: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; }, { type: "owner_changed"; at: string; revision: number; ownerRevision: number; reason: "transfer" | "takeover"; owner: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; actor: { harness: string; ownerId: string; }; previousOwner: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; }>]>; export declare const QuestionHistorySchema: z.ZodObject<{ questionId: z.ZodString; revisions: z.ZodArray; at: z.ZodString; } & { question: z.ZodObject<{ prompt: z.ZodString; ambiguity: z.ZodOptional; }, "strip", z.ZodTypeAny, { prompt: string; ambiguity?: string | undefined; }, { prompt: string; ambiguity?: string | undefined; }>; options: z.ZodArray; impact: z.ZodOptional; } & { provenance: z.ZodOptional>; }, "strict", z.ZodTypeAny, { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }, { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }>, "many">; images: z.ZodDefault; caption: z.ZodOptional; imageId: z.ZodString; mediaType: z.ZodEnum<["image/jpeg", "image/png", "image/webp"]>; byteSize: z.ZodNumber; width: z.ZodNumber; height: z.ZodNumber; }, "strict", z.ZodTypeAny, { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }, { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }>, { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }, { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }>, "many">>; }, "strict", z.ZodTypeAny, { options: { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }[]; at: string; question: { prompt: string; ambiguity?: string | undefined; }; images: { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }[]; revision: number; actor: { harness: string; ownerId: string; }; }, { options: { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }[]; at: string; question: { prompt: string; ambiguity?: string | undefined; }; revision: number; actor: { harness: string; ownerId: string; }; images?: { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }[] | undefined; }>, "many">; events: z.ZodArray; at: z.ZodString; } & { type: z.ZodLiteral<"revision">; changes: z.ZodArray, "many">; }, "strict", z.ZodTypeAny, { type: "revision"; at: string; revision: number; actor: { harness: string; ownerId: string; }; changes: ("options" | "question" | "images")[]; }, { type: "revision"; at: string; revision: number; actor: { harness: string; ownerId: string; }; changes: ("options" | "question" | "images")[]; }>, z.ZodUnion<[z.ZodObject<{ revision: z.ZodNumber; actor: z.ZodObject<{ harness: z.ZodString; ownerId: z.ZodString; }, "strict", z.ZodTypeAny, { harness: string; ownerId: string; }, { harness: string; ownerId: string; }>; at: z.ZodString; } & { type: z.ZodLiteral<"parent_changed">; parentQuestionId: z.ZodNullable; }, "strict", z.ZodTypeAny, { type: "parent_changed"; at: string; parentQuestionId: string | null; revision: number; actor: { harness: string; ownerId: string; }; }, { type: "parent_changed"; at: string; parentQuestionId: string | null; revision: number; actor: { harness: string; ownerId: string; }; }>, z.ZodObject<{ revision: z.ZodNumber; actor: z.ZodObject<{ harness: z.ZodString; ownerId: z.ZodString; }, "strict", z.ZodTypeAny, { harness: string; ownerId: string; }, { harness: string; ownerId: string; }>; at: z.ZodString; } & { type: z.ZodEnum<["cancelled", "answered", "expired"]>; }, "strict", z.ZodTypeAny, { type: "answered" | "cancelled" | "expired"; at: string; revision: number; actor: { harness: string; ownerId: string; }; }, { type: "answered" | "cancelled" | "expired"; at: string; revision: number; actor: { harness: string; ownerId: string; }; }>, z.ZodObject<{ revision: z.ZodNumber; actor: z.ZodObject<{ harness: z.ZodString; ownerId: z.ZodString; }, "strict", z.ZodTypeAny, { harness: string; ownerId: string; }, { harness: string; ownerId: string; }>; at: z.ZodString; } & { type: z.ZodLiteral<"superseded">; replacementQuestionId: z.ZodString; }, "strict", z.ZodTypeAny, { type: "superseded"; at: string; revision: number; replacementQuestionId: string; actor: { harness: string; ownerId: string; }; }, { type: "superseded"; at: string; revision: number; replacementQuestionId: string; actor: { harness: string; ownerId: string; }; }>, z.ZodObject<{ revision: z.ZodNumber; actor: z.ZodObject<{ harness: z.ZodString; ownerId: z.ZodString; }, "strict", z.ZodTypeAny, { harness: string; ownerId: string; }, { harness: string; ownerId: string; }>; at: z.ZodString; } & { type: z.ZodLiteral<"owner_changed">; ownerRevision: z.ZodNumber; previousOwner: z.ZodObject<{ harness: z.ZodEnum<["pi", "codex", "claude-code", "legacy"]>; ownerId: z.ZodString; }, "strict", z.ZodTypeAny, { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }, { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }>; owner: z.ZodObject<{ harness: z.ZodEnum<["pi", "codex", "claude-code", "legacy"]>; ownerId: z.ZodString; }, "strict", z.ZodTypeAny, { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }, { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }>; reason: z.ZodEnum<["transfer", "takeover"]>; }, "strict", z.ZodTypeAny, { type: "owner_changed"; at: string; revision: number; ownerRevision: number; reason: "transfer" | "takeover"; owner: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; actor: { harness: string; ownerId: string; }; previousOwner: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; }, { type: "owner_changed"; at: string; revision: number; ownerRevision: number; reason: "transfer" | "takeover"; owner: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; actor: { harness: string; ownerId: string; }; previousOwner: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; }>]>]>, "many">; }, "strict", z.ZodTypeAny, { questionId: string; revisions: { options: { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }[]; at: string; question: { prompt: string; ambiguity?: string | undefined; }; images: { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }[]; revision: number; actor: { harness: string; ownerId: string; }; }[]; events: ({ type: "revision"; at: string; revision: number; actor: { harness: string; ownerId: string; }; changes: ("options" | "question" | "images")[]; } | { type: "parent_changed"; at: string; parentQuestionId: string | null; revision: number; actor: { harness: string; ownerId: string; }; } | { type: "answered" | "cancelled" | "expired"; at: string; revision: number; actor: { harness: string; ownerId: string; }; } | { type: "superseded"; at: string; revision: number; replacementQuestionId: string; actor: { harness: string; ownerId: string; }; } | { type: "owner_changed"; at: string; revision: number; ownerRevision: number; reason: "transfer" | "takeover"; owner: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; actor: { harness: string; ownerId: string; }; previousOwner: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; })[]; }, { questionId: string; revisions: { options: { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }[]; at: string; question: { prompt: string; ambiguity?: string | undefined; }; revision: number; actor: { harness: string; ownerId: string; }; images?: { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }[] | undefined; }[]; events: ({ type: "revision"; at: string; revision: number; actor: { harness: string; ownerId: string; }; changes: ("options" | "question" | "images")[]; } | { type: "parent_changed"; at: string; parentQuestionId: string | null; revision: number; actor: { harness: string; ownerId: string; }; } | { type: "answered" | "cancelled" | "expired"; at: string; revision: number; actor: { harness: string; ownerId: string; }; } | { type: "superseded"; at: string; revision: number; replacementQuestionId: string; actor: { harness: string; ownerId: string; }; } | { type: "owner_changed"; at: string; revision: number; ownerRevision: number; reason: "transfer" | "takeover"; owner: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; actor: { harness: string; ownerId: string; }; previousOwner: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; })[]; }>; export declare const QuestionEventHistorySchema: z.ZodObject<{ questionId: z.ZodString; initial: z.ZodObject<{ revision: z.ZodNumber; actor: z.ZodObject<{ harness: z.ZodString; ownerId: z.ZodString; }, "strict", z.ZodTypeAny, { harness: string; ownerId: string; }, { harness: string; ownerId: string; }>; at: z.ZodString; } & { question: z.ZodObject<{ prompt: z.ZodString; ambiguity: z.ZodOptional; }, "strip", z.ZodTypeAny, { prompt: string; ambiguity?: string | undefined; }, { prompt: string; ambiguity?: string | undefined; }>; options: z.ZodArray; impact: z.ZodOptional; } & { provenance: z.ZodOptional>; }, "strict", z.ZodTypeAny, { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }, { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }>, "many">; images: z.ZodDefault; caption: z.ZodOptional; imageId: z.ZodString; mediaType: z.ZodEnum<["image/jpeg", "image/png", "image/webp"]>; byteSize: z.ZodNumber; width: z.ZodNumber; height: z.ZodNumber; }, "strict", z.ZodTypeAny, { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }, { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }>, { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }, { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }>, "many">>; }, "strict", z.ZodTypeAny, { options: { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }[]; at: string; question: { prompt: string; ambiguity?: string | undefined; }; images: { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }[]; revision: number; actor: { harness: string; ownerId: string; }; }, { options: { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }[]; at: string; question: { prompt: string; ambiguity?: string | undefined; }; revision: number; actor: { harness: string; ownerId: string; }; images?: { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }[] | undefined; }>; revisions: z.ZodArray; at: z.ZodString; } & { question: z.ZodOptional; }, "strip", z.ZodTypeAny, { prompt: string; ambiguity?: string | undefined; }, { prompt: string; ambiguity?: string | undefined; }>>; options: z.ZodOptional; impact: z.ZodOptional; } & { provenance: z.ZodOptional>; }, "strict", z.ZodTypeAny, { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }, { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }>, "many">>; images: z.ZodOptional; caption: z.ZodOptional; imageId: z.ZodString; mediaType: z.ZodEnum<["image/jpeg", "image/png", "image/webp"]>; byteSize: z.ZodNumber; width: z.ZodNumber; height: z.ZodNumber; }, "strict", z.ZodTypeAny, { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }, { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }>, { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }, { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }>, "many">>; }, "strict", z.ZodTypeAny, { at: string; revision: number; actor: { harness: string; ownerId: string; }; options?: { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }[] | undefined; question?: { prompt: string; ambiguity?: string | undefined; } | undefined; images?: { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }[] | undefined; }, { at: string; revision: number; actor: { harness: string; ownerId: string; }; options?: { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }[] | undefined; question?: { prompt: string; ambiguity?: string | undefined; } | undefined; images?: { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }[] | undefined; }>, { at: string; revision: number; actor: { harness: string; ownerId: string; }; options?: { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }[] | undefined; question?: { prompt: string; ambiguity?: string | undefined; } | undefined; images?: { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }[] | undefined; }, { at: string; revision: number; actor: { harness: string; ownerId: string; }; options?: { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }[] | undefined; question?: { prompt: string; ambiguity?: string | undefined; } | undefined; images?: { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }[] | undefined; }>, "many">; events: z.ZodArray; at: z.ZodString; } & { type: z.ZodLiteral<"parent_changed">; parentQuestionId: z.ZodNullable; }, "strict", z.ZodTypeAny, { type: "parent_changed"; at: string; parentQuestionId: string | null; revision: number; actor: { harness: string; ownerId: string; }; }, { type: "parent_changed"; at: string; parentQuestionId: string | null; revision: number; actor: { harness: string; ownerId: string; }; }>, z.ZodObject<{ revision: z.ZodNumber; actor: z.ZodObject<{ harness: z.ZodString; ownerId: z.ZodString; }, "strict", z.ZodTypeAny, { harness: string; ownerId: string; }, { harness: string; ownerId: string; }>; at: z.ZodString; } & { type: z.ZodEnum<["cancelled", "answered", "expired"]>; }, "strict", z.ZodTypeAny, { type: "answered" | "cancelled" | "expired"; at: string; revision: number; actor: { harness: string; ownerId: string; }; }, { type: "answered" | "cancelled" | "expired"; at: string; revision: number; actor: { harness: string; ownerId: string; }; }>, z.ZodObject<{ revision: z.ZodNumber; actor: z.ZodObject<{ harness: z.ZodString; ownerId: z.ZodString; }, "strict", z.ZodTypeAny, { harness: string; ownerId: string; }, { harness: string; ownerId: string; }>; at: z.ZodString; } & { type: z.ZodLiteral<"superseded">; replacementQuestionId: z.ZodString; }, "strict", z.ZodTypeAny, { type: "superseded"; at: string; revision: number; replacementQuestionId: string; actor: { harness: string; ownerId: string; }; }, { type: "superseded"; at: string; revision: number; replacementQuestionId: string; actor: { harness: string; ownerId: string; }; }>, z.ZodObject<{ revision: z.ZodNumber; actor: z.ZodObject<{ harness: z.ZodString; ownerId: z.ZodString; }, "strict", z.ZodTypeAny, { harness: string; ownerId: string; }, { harness: string; ownerId: string; }>; at: z.ZodString; } & { type: z.ZodLiteral<"owner_changed">; ownerRevision: z.ZodNumber; previousOwner: z.ZodObject<{ harness: z.ZodEnum<["pi", "codex", "claude-code", "legacy"]>; ownerId: z.ZodString; }, "strict", z.ZodTypeAny, { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }, { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }>; owner: z.ZodObject<{ harness: z.ZodEnum<["pi", "codex", "claude-code", "legacy"]>; ownerId: z.ZodString; }, "strict", z.ZodTypeAny, { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }, { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }>; reason: z.ZodEnum<["transfer", "takeover"]>; }, "strict", z.ZodTypeAny, { type: "owner_changed"; at: string; revision: number; ownerRevision: number; reason: "transfer" | "takeover"; owner: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; actor: { harness: string; ownerId: string; }; previousOwner: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; }, { type: "owner_changed"; at: string; revision: number; ownerRevision: number; reason: "transfer" | "takeover"; owner: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; actor: { harness: string; ownerId: string; }; previousOwner: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; }>]>, "many">; }, "strict", z.ZodTypeAny, { questionId: string; revisions: { at: string; revision: number; actor: { harness: string; ownerId: string; }; options?: { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }[] | undefined; question?: { prompt: string; ambiguity?: string | undefined; } | undefined; images?: { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }[] | undefined; }[]; events: ({ type: "parent_changed"; at: string; parentQuestionId: string | null; revision: number; actor: { harness: string; ownerId: string; }; } | { type: "answered" | "cancelled" | "expired"; at: string; revision: number; actor: { harness: string; ownerId: string; }; } | { type: "superseded"; at: string; revision: number; replacementQuestionId: string; actor: { harness: string; ownerId: string; }; } | { type: "owner_changed"; at: string; revision: number; ownerRevision: number; reason: "transfer" | "takeover"; owner: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; actor: { harness: string; ownerId: string; }; previousOwner: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; })[]; initial: { options: { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }[]; at: string; question: { prompt: string; ambiguity?: string | undefined; }; images: { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }[]; revision: number; actor: { harness: string; ownerId: string; }; }; }, { questionId: string; revisions: { at: string; revision: number; actor: { harness: string; ownerId: string; }; options?: { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }[] | undefined; question?: { prompt: string; ambiguity?: string | undefined; } | undefined; images?: { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }[] | undefined; }[]; events: ({ type: "parent_changed"; at: string; parentQuestionId: string | null; revision: number; actor: { harness: string; ownerId: string; }; } | { type: "answered" | "cancelled" | "expired"; at: string; revision: number; actor: { harness: string; ownerId: string; }; } | { type: "superseded"; at: string; revision: number; replacementQuestionId: string; actor: { harness: string; ownerId: string; }; } | { type: "owner_changed"; at: string; revision: number; ownerRevision: number; reason: "transfer" | "takeover"; owner: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; actor: { harness: string; ownerId: string; }; previousOwner: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; })[]; initial: { options: { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }[]; at: string; question: { prompt: string; ambiguity?: string | undefined; }; revision: number; actor: { harness: string; ownerId: string; }; images?: { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }[] | undefined; }; }>; export declare const AskCancelPayloadSchema: z.ZodObject<{ note: z.ZodOptional; }, "strict", z.ZodTypeAny, { note?: string | undefined; }, { note?: string | undefined; }>; export declare const AskResultSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{ status: z.ZodLiteral<"answered">; requestId: z.ZodString; selectedValues: z.ZodArray; note: z.ZodOptional; affectedDescendantIds: z.ZodOptional>; descendantGuidance: z.ZodOptional; resolvedAt: z.ZodString; }, "strip", z.ZodTypeAny, { status: "answered"; requestId: string; selectedValues: string[]; resolvedAt: string; affectedDescendantIds?: string[] | undefined; note?: string | undefined; descendantGuidance?: string | undefined; }, { status: "answered"; requestId: string; selectedValues: string[]; resolvedAt: string; affectedDescendantIds?: string[] | undefined; note?: string | undefined; descendantGuidance?: string | undefined; }>, z.ZodObject<{ status: z.ZodLiteral<"cancelled">; requestId: z.ZodString; note: z.ZodOptional; resolvedAt: z.ZodString; }, "strip", z.ZodTypeAny, { status: "cancelled"; requestId: string; resolvedAt: string; note?: string | undefined; }, { status: "cancelled"; requestId: string; resolvedAt: string; note?: string | undefined; }>, z.ZodObject<{ status: z.ZodLiteral<"expired">; requestId: z.ZodString; note: z.ZodOptional; resolvedAt: z.ZodString; }, "strip", z.ZodTypeAny, { status: "expired"; requestId: string; resolvedAt: string; note?: string | undefined; }, { status: "expired"; requestId: string; resolvedAt: string; note?: string | undefined; }>, z.ZodObject<{ status: z.ZodLiteral<"unavailable">; requestId: z.ZodString; note: z.ZodOptional; resolvedAt: z.ZodString; }, "strip", z.ZodTypeAny, { status: "unavailable"; requestId: string; resolvedAt: string; note?: string | undefined; }, { status: "unavailable"; requestId: string; resolvedAt: string; note?: string | undefined; }>]>; export declare const AskReceiptSchema: z.ZodObject<{ questionId: z.ZodString; revision: z.ZodNumber; ownerRevision: z.ZodNumber; status: z.ZodEnum<["pending", "answered", "cancelled", "expired", "superseded"]>; disposition: z.ZodEnum<["created", "idempotent"]>; }, "strip", z.ZodTypeAny, { status: "pending" | "answered" | "cancelled" | "expired" | "superseded"; questionId: string; revision: number; ownerRevision: number; disposition: "created" | "idempotent"; }, { status: "pending" | "answered" | "cancelled" | "expired" | "superseded"; questionId: string; revision: number; ownerRevision: number; disposition: "created" | "idempotent"; }>; export declare const LifecycleResolutionReadResultSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{ type: z.ZodLiteral<"lifecycle">; questionId: z.ZodString; resolvedAt: z.ZodString; } & { status: z.ZodLiteral<"cancelled">; note: z.ZodOptional; }, "strict", z.ZodTypeAny, { type: "lifecycle"; status: "cancelled"; questionId: string; resolvedAt: string; note?: string | undefined; }, { type: "lifecycle"; status: "cancelled"; questionId: string; resolvedAt: string; note?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"lifecycle">; questionId: z.ZodString; note: z.ZodOptional; resolvedAt: z.ZodString; } & { status: z.ZodLiteral<"expired">; }, "strict", z.ZodTypeAny, { type: "lifecycle"; status: "expired"; questionId: string; resolvedAt: string; note?: string | undefined; }, { type: "lifecycle"; status: "expired"; questionId: string; resolvedAt: string; note?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"lifecycle">; questionId: z.ZodString; note: z.ZodOptional; resolvedAt: z.ZodString; } & { status: z.ZodLiteral<"superseded">; replacementQuestionId: z.ZodString; }, "strict", z.ZodTypeAny, { type: "lifecycle"; status: "superseded"; questionId: string; replacementQuestionId: string; resolvedAt: string; note?: string | undefined; }, { type: "lifecycle"; status: "superseded"; questionId: string; replacementQuestionId: string; resolvedAt: string; note?: string | undefined; }>]>; export declare const PendingAnswerReadResultSchema: z.ZodObject<{ type: z.ZodLiteral<"pending">; status: z.ZodLiteral<"pending">; questionId: z.ZodString; }, "strict", z.ZodTypeAny, { type: "pending"; status: "pending"; questionId: string; }, { type: "pending"; status: "pending"; questionId: string; }>; export declare const AnswerReadResultSchema: z.ZodUnion<[z.ZodObject<{ type: z.ZodLiteral<"pending">; status: z.ZodLiteral<"pending">; questionId: z.ZodString; }, "strict", z.ZodTypeAny, { type: "pending"; status: "pending"; questionId: string; }, { type: "pending"; status: "pending"; questionId: string; }>, z.ZodObject<{ questionId: z.ZodString; answerId: z.ZodString; answer: z.ZodArray; note: z.ZodOptional; }, "strict", z.ZodTypeAny, { questionId: string; answer: string[]; answerId: string; note?: string | undefined; }, { questionId: string; answer: string[]; answerId: string; note?: string | undefined; }>, z.ZodDiscriminatedUnion<"status", [z.ZodObject<{ type: z.ZodLiteral<"lifecycle">; questionId: z.ZodString; resolvedAt: z.ZodString; } & { status: z.ZodLiteral<"cancelled">; note: z.ZodOptional; }, "strict", z.ZodTypeAny, { type: "lifecycle"; status: "cancelled"; questionId: string; resolvedAt: string; note?: string | undefined; }, { type: "lifecycle"; status: "cancelled"; questionId: string; resolvedAt: string; note?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"lifecycle">; questionId: z.ZodString; note: z.ZodOptional; resolvedAt: z.ZodString; } & { status: z.ZodLiteral<"expired">; }, "strict", z.ZodTypeAny, { type: "lifecycle"; status: "expired"; questionId: string; resolvedAt: string; note?: string | undefined; }, { type: "lifecycle"; status: "expired"; questionId: string; resolvedAt: string; note?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"lifecycle">; questionId: z.ZodString; note: z.ZodOptional; resolvedAt: z.ZodString; } & { status: z.ZodLiteral<"superseded">; replacementQuestionId: z.ZodString; }, "strict", z.ZodTypeAny, { type: "lifecycle"; status: "superseded"; questionId: string; replacementQuestionId: string; resolvedAt: string; note?: string | undefined; }, { type: "lifecycle"; status: "superseded"; questionId: string; replacementQuestionId: string; resolvedAt: string; note?: string | undefined; }>]>]>; export declare const AskRequestSnapshotSchema: z.ZodEffects; creator: z.ZodObject<{ harness: z.ZodEnum<["pi", "codex", "claude-code", "legacy"]>; ownerId: z.ZodString; }, "strict", z.ZodTypeAny, { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }, { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }>; owner: z.ZodObject<{ harness: z.ZodEnum<["pi", "codex", "claude-code", "legacy"]>; ownerId: z.ZodString; }, "strict", z.ZodTypeAny, { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }, { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }>; mode: z.ZodEnum<["single", "multi"]>; question: z.ZodObject<{ prompt: z.ZodString; ambiguity: z.ZodOptional; }, "strip", z.ZodTypeAny, { prompt: string; ambiguity?: string | undefined; }, { prompt: string; ambiguity?: string | undefined; }>; options: z.ZodArray; impact: z.ZodOptional; } & { provenance: z.ZodOptional>; }, "strict", z.ZodTypeAny, { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }, { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }>, "many">; images: z.ZodDefault; caption: z.ZodOptional; imageId: z.ZodString; mediaType: z.ZodEnum<["image/jpeg", "image/png", "image/webp"]>; byteSize: z.ZodNumber; width: z.ZodNumber; height: z.ZodNumber; }, "strict", z.ZodTypeAny, { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }, { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }>, { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }, { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }>, "many">>; forkReference: z.ZodOptional; agentSessionPath: z.ZodOptional; leafId: z.ZodOptional; cwd: z.ZodOptional; model: z.ZodOptional; }, "strip", z.ZodTypeAny, { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; }, { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; }>>; status: z.ZodEnum<["pending", "answered", "cancelled", "expired", "superseded"]>; createdAt: z.ZodString; expiresAt: z.ZodOptional; resolvedAt: z.ZodOptional; result: z.ZodOptional; requestId: z.ZodString; selectedValues: z.ZodArray; note: z.ZodOptional; affectedDescendantIds: z.ZodOptional>; descendantGuidance: z.ZodOptional; resolvedAt: z.ZodString; }, "strip", z.ZodTypeAny, { status: "answered"; requestId: string; selectedValues: string[]; resolvedAt: string; affectedDescendantIds?: string[] | undefined; note?: string | undefined; descendantGuidance?: string | undefined; }, { status: "answered"; requestId: string; selectedValues: string[]; resolvedAt: string; affectedDescendantIds?: string[] | undefined; note?: string | undefined; descendantGuidance?: string | undefined; }>, z.ZodObject<{ status: z.ZodLiteral<"cancelled">; requestId: z.ZodString; note: z.ZodOptional; resolvedAt: z.ZodString; }, "strip", z.ZodTypeAny, { status: "cancelled"; requestId: string; resolvedAt: string; note?: string | undefined; }, { status: "cancelled"; requestId: string; resolvedAt: string; note?: string | undefined; }>, z.ZodObject<{ status: z.ZodLiteral<"expired">; requestId: z.ZodString; note: z.ZodOptional; resolvedAt: z.ZodString; }, "strip", z.ZodTypeAny, { status: "expired"; requestId: string; resolvedAt: string; note?: string | undefined; }, { status: "expired"; requestId: string; resolvedAt: string; note?: string | undefined; }>, z.ZodObject<{ status: z.ZodLiteral<"unavailable">; requestId: z.ZodString; note: z.ZodOptional; resolvedAt: z.ZodString; }, "strip", z.ZodTypeAny, { status: "unavailable"; requestId: string; resolvedAt: string; note?: string | undefined; }, { status: "unavailable"; requestId: string; resolvedAt: string; note?: string | undefined; }>]>>; answerId: z.ZodOptional; answerRead: z.ZodOptional; parentQuestionId: z.ZodOptional; repository: z.ZodOptional; machineId: z.ZodOptional; commonDirectory: z.ZodOptional; }, "strict", z.ZodTypeAny, { repositoryId: string; remote?: string | undefined; machineId?: string | undefined; commonDirectory?: string | undefined; }, { repositoryId: string; remote?: string | undefined; machineId?: string | undefined; commonDirectory?: string | undefined; }>>; worktree: z.ZodOptional>; feature: z.ZodOptional; }, "strict", z.ZodTypeAny, { featureId: string; name?: string | undefined; }, { featureId: string; name?: string | undefined; }>>; }, "strict", z.ZodTypeAny, { options: { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }[]; status: "pending" | "answered" | "cancelled" | "expired" | "superseded"; requestId: string; sessionId: string; mode: "single" | "multi"; question: { prompt: string; ambiguity?: string | undefined; }; images: { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }[]; revision: number; ownerRevision: number; owner: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; creator: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; createdAt: string; forkReference?: { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; } | undefined; expiresAt?: string | undefined; parentQuestionId?: string | undefined; repository?: { repositoryId: string; remote?: string | undefined; machineId?: string | undefined; commonDirectory?: string | undefined; } | undefined; worktree?: { path: string; machineId: string; worktreeId: string; } | undefined; feature?: { featureId: string; name?: string | undefined; } | undefined; answerId?: string | undefined; resolvedAt?: string | undefined; result?: { status: "answered"; requestId: string; selectedValues: string[]; resolvedAt: string; affectedDescendantIds?: string[] | undefined; note?: string | undefined; descendantGuidance?: string | undefined; } | { status: "cancelled"; requestId: string; resolvedAt: string; note?: string | undefined; } | { status: "expired"; requestId: string; resolvedAt: string; note?: string | undefined; } | { status: "unavailable"; requestId: string; resolvedAt: string; note?: string | undefined; } | undefined; answerRead?: boolean | undefined; }, { options: { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }[]; status: "pending" | "answered" | "cancelled" | "expired" | "superseded"; requestId: string; sessionId: string; mode: "single" | "multi"; question: { prompt: string; ambiguity?: string | undefined; }; revision: number; owner: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; creator: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; createdAt: string; images?: { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }[] | undefined; forkReference?: { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; } | undefined; expiresAt?: string | undefined; parentQuestionId?: string | undefined; repository?: { repositoryId: string; remote?: string | undefined; machineId?: string | undefined; commonDirectory?: string | undefined; } | undefined; worktree?: { path: string; machineId: string; worktreeId: string; } | undefined; feature?: { featureId: string; name?: string | undefined; } | undefined; ownerRevision?: number | undefined; answerId?: string | undefined; resolvedAt?: string | undefined; result?: { status: "answered"; requestId: string; selectedValues: string[]; resolvedAt: string; affectedDescendantIds?: string[] | undefined; note?: string | undefined; descendantGuidance?: string | undefined; } | { status: "cancelled"; requestId: string; resolvedAt: string; note?: string | undefined; } | { status: "expired"; requestId: string; resolvedAt: string; note?: string | undefined; } | { status: "unavailable"; requestId: string; resolvedAt: string; note?: string | undefined; } | undefined; answerRead?: boolean | undefined; }>, { options: { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }[]; status: "pending" | "answered" | "cancelled" | "expired" | "superseded"; requestId: string; sessionId: string; mode: "single" | "multi"; question: { prompt: string; ambiguity?: string | undefined; }; images: { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }[]; revision: number; ownerRevision: number; owner: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; creator: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; createdAt: string; forkReference?: { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; } | undefined; expiresAt?: string | undefined; parentQuestionId?: string | undefined; repository?: { repositoryId: string; remote?: string | undefined; machineId?: string | undefined; commonDirectory?: string | undefined; } | undefined; worktree?: { path: string; machineId: string; worktreeId: string; } | undefined; feature?: { featureId: string; name?: string | undefined; } | undefined; answerId?: string | undefined; resolvedAt?: string | undefined; result?: { status: "answered"; requestId: string; selectedValues: string[]; resolvedAt: string; affectedDescendantIds?: string[] | undefined; note?: string | undefined; descendantGuidance?: string | undefined; } | { status: "cancelled"; requestId: string; resolvedAt: string; note?: string | undefined; } | { status: "expired"; requestId: string; resolvedAt: string; note?: string | undefined; } | { status: "unavailable"; requestId: string; resolvedAt: string; note?: string | undefined; } | undefined; answerRead?: boolean | undefined; }, { options: { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }[]; status: "pending" | "answered" | "cancelled" | "expired" | "superseded"; requestId: string; sessionId: string; mode: "single" | "multi"; question: { prompt: string; ambiguity?: string | undefined; }; revision: number; owner: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; creator: { harness: "pi" | "codex" | "claude-code" | "legacy"; ownerId: string; }; createdAt: string; images?: { alt: string; imageId: string; mediaType: "image/jpeg" | "image/png" | "image/webp"; byteSize: number; width: number; height: number; caption?: string | undefined; }[] | undefined; forkReference?: { agentSessionId?: string | undefined; agentSessionPath?: string | undefined; leafId?: string | undefined; cwd?: string | undefined; model?: string | undefined; } | undefined; expiresAt?: string | undefined; parentQuestionId?: string | undefined; repository?: { repositoryId: string; remote?: string | undefined; machineId?: string | undefined; commonDirectory?: string | undefined; } | undefined; worktree?: { path: string; machineId: string; worktreeId: string; } | undefined; feature?: { featureId: string; name?: string | undefined; } | undefined; ownerRevision?: number | undefined; answerId?: string | undefined; resolvedAt?: string | undefined; result?: { status: "answered"; requestId: string; selectedValues: string[]; resolvedAt: string; affectedDescendantIds?: string[] | undefined; note?: string | undefined; descendantGuidance?: string | undefined; } | { status: "cancelled"; requestId: string; resolvedAt: string; note?: string | undefined; } | { status: "expired"; requestId: string; resolvedAt: string; note?: string | undefined; } | { status: "unavailable"; requestId: string; resolvedAt: string; note?: string | undefined; } | undefined; answerRead?: boolean | undefined; }>; export type AskMode = z.infer; export type AskStatus = z.infer; export type ForkReference = z.infer; export type AskCreateOption = z.infer; export type AskOption = z.infer; export type ProposedAnswerOption = z.infer; export type ProposeAnswerPayload = z.infer; export type ProposeAnswerErrorCode = z.infer; export type ProposeAnswerResult = z.infer; export type AskQuestion = z.infer; export type AskCreateQuestion = z.infer; export type AskCreatePayload = z.infer; export type AskQuestionDraft = z.infer; export type AskBatchQuestionDraft = z.infer; export type AskPostboxInput = z.infer; export type AskBatchReceipt = z.infer; export type AskAnswerPayload = z.infer; export type UpdateQuestionPayload = z.infer; export type QuestionResolution = z.infer; export type QuestionRevisionSnapshot = z.infer; export type QuestionContentRevision = z.infer; export type QuestionNonContentEvent = z.infer; export type QuestionHistory = z.infer; export type QuestionEventHistory = z.infer; export type AskCancelPayload = z.infer; export type AskResult = z.infer; export type AskReceipt = z.infer; export type PendingAnswerReadResult = z.infer; export type AnswerReadResult = z.infer; export type AskRequestSnapshot = z.infer; //# sourceMappingURL=ask.d.ts.map