import { z } from "zod"; export declare const QUESTION_CHAT_COMMAND_ID_MAX = 128; export declare const QUESTION_CHAT_RETRY_AFTER_MS_MAX = 3600000; export declare const QUESTION_CHAT_USER_TEXT_MAX = 8000; export declare const QUESTION_CHAT_ASSISTANT_TEXT_MAX = 32000; export declare const QUESTION_CHAT_DELTA_MAX = 4000; export declare const QUESTION_CHAT_MESSAGE_MAX = 100; export declare const QUESTION_CHAT_TOOL_TARGET_MAX = 1000; export declare const QUESTION_CHAT_TOOL_DETAILS_MAX = 8000; export declare const QUESTION_CHAT_TOOL_ACTIVITY_MAX = 50; export declare const QUESTION_CHAT_STARTERS: readonly [{ readonly id: "elaborate"; readonly label: "Elaborate"; readonly instruction: "Explain the asking agent's language and intent in this question."; }, { readonly id: "pro-cons"; readonly label: "Pro–Cons"; readonly instruction: "Compare the relevant trade-offs of this decision at my current level."; }, { readonly id: "teach-me"; readonly label: "Teach me"; readonly instruction: "Teach me the minimum foundational concepts I need to understand this question."; }]; export declare const QuestionChatAvailabilityCodeSchema: z.ZodEnum<["request_missing", "request_not_pending", "extension_offline", "source_path_missing", "source_leaf_missing", "wrong_owner", "command_timeout", "runtime_failure", "chat_not_started", "invalid_command", "duplicate_command", "runtime_busy", "forbidden_origin", "rate_limited"]>; export declare const QuestionChatAvailabilityErrorSchema: z.ZodObject<{ code: z.ZodEnum<["request_missing", "request_not_pending", "extension_offline", "source_path_missing", "source_leaf_missing", "wrong_owner", "command_timeout", "runtime_failure", "chat_not_started", "invalid_command", "duplicate_command", "runtime_busy", "forbidden_origin", "rate_limited"]>; message: z.ZodString; retryAfterMs: z.ZodOptional; }, "strip", z.ZodTypeAny, { code: "wrong_owner" | "request_missing" | "request_not_pending" | "extension_offline" | "source_path_missing" | "source_leaf_missing" | "command_timeout" | "runtime_failure" | "chat_not_started" | "invalid_command" | "duplicate_command" | "runtime_busy" | "forbidden_origin" | "rate_limited"; message: string; retryAfterMs?: number | undefined; }, { code: "wrong_owner" | "request_missing" | "request_not_pending" | "extension_offline" | "source_path_missing" | "source_leaf_missing" | "command_timeout" | "runtime_failure" | "chat_not_started" | "invalid_command" | "duplicate_command" | "runtime_busy" | "forbidden_origin" | "rate_limited"; message: string; retryAfterMs?: number | undefined; }>; export declare const QuestionChatSourceSchema: z.ZodObject<{ cwd: z.ZodString; question: z.ZodObject<{ revision: z.ZodNumber; question: z.ZodString; ambiguity: z.ZodString; 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">; mode: z.ZodEnum<["single", "multi"]>; }, "strip", z.ZodTypeAny, { options: { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }[]; ambiguity: string; mode: "single" | "multi"; question: string; revision: number; }, { options: { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }[]; ambiguity: string; mode: "single" | "multi"; question: string; revision: number; }>; settings: z.ZodObject<{ model: z.ZodNullable; effort: z.ZodEnum<["off", "minimal", "low", "medium", "high", "xhigh", "max"]>; }, "strict", z.ZodTypeAny, { model: string | null; effort: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max"; }, { model: string | null; effort: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max"; }>; }, "strip", z.ZodTypeAny, { cwd: string; question: { options: { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }[]; ambiguity: string; mode: "single" | "multi"; question: string; revision: number; }; settings: { model: string | null; effort: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max"; }; }, { cwd: string; question: { options: { value: string; label: string; description?: string | undefined; impact?: string | undefined; provenance?: "chat" | undefined; }[]; ambiguity: string; mode: "single" | "multi"; question: string; revision: number; }; settings: { model: string | null; effort: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max"; }; }>; export declare const QuestionChatModelSourceSchema: z.ZodEnum<["postbox-settings", "pi-default"]>; export declare const QuestionChatModelSchema: z.ZodObject<{ id: z.ZodString; source: z.ZodEnum<["postbox-settings", "pi-default"]>; effort: z.ZodOptional>; fallbackReason: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: string; source: "postbox-settings" | "pi-default"; effort?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined; fallbackReason?: string | undefined; }, { id: string; source: "postbox-settings" | "pi-default"; effort?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined; fallbackReason?: string | undefined; }>; export declare const QuestionChatStateSchema: z.ZodEnum<["ready", "generating", "stopping", "stopped", "interrupted"]>; export declare const QuestionChatAssistantStatusSchema: z.ZodEnum<["streaming", "final", "stopped", "interrupted"]>; export declare const QuestionChatMessageSchema: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{ id: z.ZodString; role: z.ZodLiteral<"user">; text: z.ZodString; status: z.ZodLiteral<"final">; }, "strip", z.ZodTypeAny, { status: "final"; id: string; role: "user"; text: string; }, { status: "final"; id: string; role: "user"; text: string; }>, z.ZodObject<{ id: z.ZodString; role: z.ZodLiteral<"assistant">; text: z.ZodString; status: z.ZodEnum<["streaming", "final", "stopped", "interrupted"]>; }, "strip", z.ZodTypeAny, { status: "stopped" | "interrupted" | "streaming" | "final"; id: string; role: "assistant"; text: string; }, { status: "stopped" | "interrupted" | "streaming" | "final"; id: string; role: "assistant"; text: string; }>]>; export declare const QuestionChatRepositoryToolNameSchema: z.ZodEnum<["repository_read", "repository_grep", "repository_find", "repository_list"]>; export declare const QuestionChatPostboxToolNameSchema: z.ZodLiteral<"propose_answer">; export declare const QuestionChatToolNameSchema: z.ZodUnion<[z.ZodEnum<["repository_read", "repository_grep", "repository_find", "repository_list"]>, z.ZodLiteral<"propose_answer">]>; export declare const QuestionChatToolActionSchema: z.ZodObject<{ type: z.ZodLiteral<"show-question">; optionValue: z.ZodString; }, "strict", z.ZodTypeAny, { type: "show-question"; optionValue: string; }, { type: "show-question"; optionValue: string; }>; export declare const QuestionChatToolStateSchema: z.ZodEnum<["running", "success", "error", "stale"]>; export declare const QuestionChatToolActivitySchema: z.ZodDiscriminatedUnion<"state", [z.ZodObject<{ id: z.ZodString; tool: z.ZodUnion<[z.ZodEnum<["repository_read", "repository_grep", "repository_find", "repository_list"]>, z.ZodLiteral<"propose_answer">]>; target: z.ZodString; details: z.ZodOptional; action: z.ZodOptional; optionValue: z.ZodString; }, "strict", z.ZodTypeAny, { type: "show-question"; optionValue: string; }, { type: "show-question"; optionValue: string; }>>; } & { state: z.ZodLiteral<"running">; }, "strict", z.ZodTypeAny, { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "running"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; }, { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "running"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; tool: z.ZodUnion<[z.ZodEnum<["repository_read", "repository_grep", "repository_find", "repository_list"]>, z.ZodLiteral<"propose_answer">]>; target: z.ZodString; details: z.ZodOptional; action: z.ZodOptional; optionValue: z.ZodString; }, "strict", z.ZodTypeAny, { type: "show-question"; optionValue: string; }, { type: "show-question"; optionValue: string; }>>; } & { state: z.ZodLiteral<"success">; }, "strict", z.ZodTypeAny, { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "success"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; }, { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "success"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; tool: z.ZodUnion<[z.ZodEnum<["repository_read", "repository_grep", "repository_find", "repository_list"]>, z.ZodLiteral<"propose_answer">]>; target: z.ZodString; details: z.ZodOptional; action: z.ZodOptional; optionValue: z.ZodString; }, "strict", z.ZodTypeAny, { type: "show-question"; optionValue: string; }, { type: "show-question"; optionValue: string; }>>; } & { state: z.ZodLiteral<"error">; }, "strict", z.ZodTypeAny, { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "error"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; }, { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "error"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; tool: z.ZodUnion<[z.ZodEnum<["repository_read", "repository_grep", "repository_find", "repository_list"]>, z.ZodLiteral<"propose_answer">]>; target: z.ZodString; details: z.ZodOptional; action: z.ZodOptional; optionValue: z.ZodString; }, "strict", z.ZodTypeAny, { type: "show-question"; optionValue: string; }, { type: "show-question"; optionValue: string; }>>; } & { state: z.ZodLiteral<"stale">; }, "strict", z.ZodTypeAny, { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "stale"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; }, { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "stale"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; }>]>; export declare const QuestionChatSnapshotSchema: z.ZodObject<{ requestId: z.ZodString; state: z.ZodEnum<["ready", "generating", "stopping", "stopped", "interrupted"]>; forkKind: z.ZodLiteral<"fresh">; model: z.ZodObject<{ id: z.ZodString; source: z.ZodEnum<["postbox-settings", "pi-default"]>; effort: z.ZodOptional>; fallbackReason: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: string; source: "postbox-settings" | "pi-default"; effort?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined; fallbackReason?: string | undefined; }, { id: string; source: "postbox-settings" | "pi-default"; effort?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined; fallbackReason?: string | undefined; }>; sequence: z.ZodDefault; messages: z.ZodArray; text: z.ZodString; status: z.ZodLiteral<"final">; }, "strip", z.ZodTypeAny, { status: "final"; id: string; role: "user"; text: string; }, { status: "final"; id: string; role: "user"; text: string; }>, z.ZodObject<{ id: z.ZodString; role: z.ZodLiteral<"assistant">; text: z.ZodString; status: z.ZodEnum<["streaming", "final", "stopped", "interrupted"]>; }, "strip", z.ZodTypeAny, { status: "stopped" | "interrupted" | "streaming" | "final"; id: string; role: "assistant"; text: string; }, { status: "stopped" | "interrupted" | "streaming" | "final"; id: string; role: "assistant"; text: string; }>]>, "many">; tools: z.ZodDefault, z.ZodLiteral<"propose_answer">]>; target: z.ZodString; details: z.ZodOptional; action: z.ZodOptional; optionValue: z.ZodString; }, "strict", z.ZodTypeAny, { type: "show-question"; optionValue: string; }, { type: "show-question"; optionValue: string; }>>; } & { state: z.ZodLiteral<"running">; }, "strict", z.ZodTypeAny, { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "running"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; }, { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "running"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; tool: z.ZodUnion<[z.ZodEnum<["repository_read", "repository_grep", "repository_find", "repository_list"]>, z.ZodLiteral<"propose_answer">]>; target: z.ZodString; details: z.ZodOptional; action: z.ZodOptional; optionValue: z.ZodString; }, "strict", z.ZodTypeAny, { type: "show-question"; optionValue: string; }, { type: "show-question"; optionValue: string; }>>; } & { state: z.ZodLiteral<"success">; }, "strict", z.ZodTypeAny, { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "success"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; }, { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "success"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; tool: z.ZodUnion<[z.ZodEnum<["repository_read", "repository_grep", "repository_find", "repository_list"]>, z.ZodLiteral<"propose_answer">]>; target: z.ZodString; details: z.ZodOptional; action: z.ZodOptional; optionValue: z.ZodString; }, "strict", z.ZodTypeAny, { type: "show-question"; optionValue: string; }, { type: "show-question"; optionValue: string; }>>; } & { state: z.ZodLiteral<"error">; }, "strict", z.ZodTypeAny, { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "error"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; }, { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "error"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; tool: z.ZodUnion<[z.ZodEnum<["repository_read", "repository_grep", "repository_find", "repository_list"]>, z.ZodLiteral<"propose_answer">]>; target: z.ZodString; details: z.ZodOptional; action: z.ZodOptional; optionValue: z.ZodString; }, "strict", z.ZodTypeAny, { type: "show-question"; optionValue: string; }, { type: "show-question"; optionValue: string; }>>; } & { state: z.ZodLiteral<"stale">; }, "strict", z.ZodTypeAny, { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "stale"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; }, { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "stale"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; }>]>, "many">>; }, "strip", z.ZodTypeAny, { model: { id: string; source: "postbox-settings" | "pi-default"; effort?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined; fallbackReason?: string | undefined; }; requestId: string; state: "ready" | "generating" | "stopping" | "stopped" | "interrupted"; forkKind: "fresh"; sequence: number; messages: ({ status: "final"; id: string; role: "user"; text: string; } | { status: "stopped" | "interrupted" | "streaming" | "final"; id: string; role: "assistant"; text: string; })[]; tools: ({ id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "running"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; } | { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "success"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; } | { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "error"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; } | { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "stale"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; })[]; }, { model: { id: string; source: "postbox-settings" | "pi-default"; effort?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined; fallbackReason?: string | undefined; }; requestId: string; state: "ready" | "generating" | "stopping" | "stopped" | "interrupted"; forkKind: "fresh"; messages: ({ status: "final"; id: string; role: "user"; text: string; } | { status: "stopped" | "interrupted" | "streaming" | "final"; id: string; role: "assistant"; text: string; })[]; sequence?: number | undefined; tools?: ({ id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "running"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; } | { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "success"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; } | { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "error"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; } | { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "stale"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; })[] | undefined; }>; export declare const QuestionChatSendPayloadSchema: z.ZodObject<{ clientCommandId: z.ZodString; message: z.ZodString; }, "strict", z.ZodTypeAny, { message: string; clientCommandId: string; }, { message: string; clientCommandId: string; }>; export declare const QuestionChatEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ requestId: z.ZodString; sequence: z.ZodNumber; } & { type: z.ZodLiteral<"lifecycle">; state: z.ZodEnum<["ready", "generating", "stopping", "stopped", "interrupted"]>; }, "strip", z.ZodTypeAny, { type: "lifecycle"; requestId: string; state: "ready" | "generating" | "stopping" | "stopped" | "interrupted"; sequence: number; }, { type: "lifecycle"; requestId: string; state: "ready" | "generating" | "stopping" | "stopped" | "interrupted"; sequence: number; }>, z.ZodObject<{ requestId: z.ZodString; sequence: z.ZodNumber; } & { type: z.ZodLiteral<"message.started">; message: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{ id: z.ZodString; role: z.ZodLiteral<"user">; text: z.ZodString; status: z.ZodLiteral<"final">; }, "strip", z.ZodTypeAny, { status: "final"; id: string; role: "user"; text: string; }, { status: "final"; id: string; role: "user"; text: string; }>, z.ZodObject<{ id: z.ZodString; role: z.ZodLiteral<"assistant">; text: z.ZodString; status: z.ZodEnum<["streaming", "final", "stopped", "interrupted"]>; }, "strip", z.ZodTypeAny, { status: "stopped" | "interrupted" | "streaming" | "final"; id: string; role: "assistant"; text: string; }, { status: "stopped" | "interrupted" | "streaming" | "final"; id: string; role: "assistant"; text: string; }>]>; }, "strip", z.ZodTypeAny, { message: { status: "final"; id: string; role: "user"; text: string; } | { status: "stopped" | "interrupted" | "streaming" | "final"; id: string; role: "assistant"; text: string; }; type: "message.started"; requestId: string; sequence: number; }, { message: { status: "final"; id: string; role: "user"; text: string; } | { status: "stopped" | "interrupted" | "streaming" | "final"; id: string; role: "assistant"; text: string; }; type: "message.started"; requestId: string; sequence: number; }>, z.ZodObject<{ requestId: z.ZodString; sequence: z.ZodNumber; } & { type: z.ZodLiteral<"assistant.text.delta">; messageId: z.ZodString; text: z.ZodString; }, "strip", z.ZodTypeAny, { type: "assistant.text.delta"; requestId: string; text: string; sequence: number; messageId: string; }, { type: "assistant.text.delta"; requestId: string; text: string; sequence: number; messageId: string; }>, z.ZodObject<{ requestId: z.ZodString; sequence: z.ZodNumber; } & { type: z.ZodLiteral<"message.finished">; messageId: z.ZodString; text: z.ZodString; status: z.ZodDefault>; }, "strip", z.ZodTypeAny, { type: "message.finished"; status: "stopped" | "interrupted" | "final"; requestId: string; text: string; sequence: number; messageId: string; }, { type: "message.finished"; requestId: string; text: string; sequence: number; messageId: string; status?: "stopped" | "interrupted" | "final" | undefined; }>, z.ZodObject<{ requestId: z.ZodString; sequence: z.ZodNumber; } & { type: z.ZodLiteral<"tool.started">; activity: z.ZodObject<{ id: z.ZodString; tool: z.ZodUnion<[z.ZodEnum<["repository_read", "repository_grep", "repository_find", "repository_list"]>, z.ZodLiteral<"propose_answer">]>; target: z.ZodString; details: z.ZodOptional; action: z.ZodOptional; optionValue: z.ZodString; }, "strict", z.ZodTypeAny, { type: "show-question"; optionValue: string; }, { type: "show-question"; optionValue: string; }>>; } & { state: z.ZodLiteral<"running">; }, "strict", z.ZodTypeAny, { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "running"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; }, { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "running"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; }>; }, "strip", z.ZodTypeAny, { type: "tool.started"; requestId: string; sequence: number; activity: { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "running"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; }; }, { type: "tool.started"; requestId: string; sequence: number; activity: { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "running"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; }; }>, z.ZodObject<{ requestId: z.ZodString; sequence: z.ZodNumber; } & { type: z.ZodLiteral<"tool.finished">; activity: z.ZodDiscriminatedUnion<"state", [z.ZodObject<{ id: z.ZodString; tool: z.ZodUnion<[z.ZodEnum<["repository_read", "repository_grep", "repository_find", "repository_list"]>, z.ZodLiteral<"propose_answer">]>; target: z.ZodString; details: z.ZodOptional; action: z.ZodOptional; optionValue: z.ZodString; }, "strict", z.ZodTypeAny, { type: "show-question"; optionValue: string; }, { type: "show-question"; optionValue: string; }>>; } & { state: z.ZodLiteral<"success">; }, "strict", z.ZodTypeAny, { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "success"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; }, { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "success"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; tool: z.ZodUnion<[z.ZodEnum<["repository_read", "repository_grep", "repository_find", "repository_list"]>, z.ZodLiteral<"propose_answer">]>; target: z.ZodString; details: z.ZodOptional; action: z.ZodOptional; optionValue: z.ZodString; }, "strict", z.ZodTypeAny, { type: "show-question"; optionValue: string; }, { type: "show-question"; optionValue: string; }>>; } & { state: z.ZodLiteral<"error">; }, "strict", z.ZodTypeAny, { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "error"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; }, { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "error"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; tool: z.ZodUnion<[z.ZodEnum<["repository_read", "repository_grep", "repository_find", "repository_list"]>, z.ZodLiteral<"propose_answer">]>; target: z.ZodString; details: z.ZodOptional; action: z.ZodOptional; optionValue: z.ZodString; }, "strict", z.ZodTypeAny, { type: "show-question"; optionValue: string; }, { type: "show-question"; optionValue: string; }>>; } & { state: z.ZodLiteral<"stale">; }, "strict", z.ZodTypeAny, { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "stale"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; }, { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "stale"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; }>]>; }, "strip", z.ZodTypeAny, { type: "tool.finished"; requestId: string; sequence: number; activity: { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "success"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; } | { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "error"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; } | { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "stale"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; }; }, { type: "tool.finished"; requestId: string; sequence: number; activity: { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "success"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; } | { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "error"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; } | { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "stale"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; }; }>]>; export declare const QuestionChatTransportEventSchema: z.ZodObject<{ protocolVersion: z.ZodOptional>; requestId: z.ZodString; type: z.ZodLiteral<"transport">; state: z.ZodEnum<["online", "offline"]>; }, "strict", z.ZodTypeAny, { type: "transport"; requestId: string; state: "online" | "offline"; protocolVersion?: "0.1.12" | undefined; }, { type: "transport"; requestId: string; state: "online" | "offline"; protocolVersion?: "0.1.12" | undefined; }>; export declare const QuestionChatStreamEventSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ requestId: z.ZodString; sequence: z.ZodNumber; } & { type: z.ZodLiteral<"lifecycle">; state: z.ZodEnum<["ready", "generating", "stopping", "stopped", "interrupted"]>; }, "strip", z.ZodTypeAny, { type: "lifecycle"; requestId: string; state: "ready" | "generating" | "stopping" | "stopped" | "interrupted"; sequence: number; }, { type: "lifecycle"; requestId: string; state: "ready" | "generating" | "stopping" | "stopped" | "interrupted"; sequence: number; }>, z.ZodObject<{ requestId: z.ZodString; sequence: z.ZodNumber; } & { type: z.ZodLiteral<"message.started">; message: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{ id: z.ZodString; role: z.ZodLiteral<"user">; text: z.ZodString; status: z.ZodLiteral<"final">; }, "strip", z.ZodTypeAny, { status: "final"; id: string; role: "user"; text: string; }, { status: "final"; id: string; role: "user"; text: string; }>, z.ZodObject<{ id: z.ZodString; role: z.ZodLiteral<"assistant">; text: z.ZodString; status: z.ZodEnum<["streaming", "final", "stopped", "interrupted"]>; }, "strip", z.ZodTypeAny, { status: "stopped" | "interrupted" | "streaming" | "final"; id: string; role: "assistant"; text: string; }, { status: "stopped" | "interrupted" | "streaming" | "final"; id: string; role: "assistant"; text: string; }>]>; }, "strip", z.ZodTypeAny, { message: { status: "final"; id: string; role: "user"; text: string; } | { status: "stopped" | "interrupted" | "streaming" | "final"; id: string; role: "assistant"; text: string; }; type: "message.started"; requestId: string; sequence: number; }, { message: { status: "final"; id: string; role: "user"; text: string; } | { status: "stopped" | "interrupted" | "streaming" | "final"; id: string; role: "assistant"; text: string; }; type: "message.started"; requestId: string; sequence: number; }>, z.ZodObject<{ requestId: z.ZodString; sequence: z.ZodNumber; } & { type: z.ZodLiteral<"assistant.text.delta">; messageId: z.ZodString; text: z.ZodString; }, "strip", z.ZodTypeAny, { type: "assistant.text.delta"; requestId: string; text: string; sequence: number; messageId: string; }, { type: "assistant.text.delta"; requestId: string; text: string; sequence: number; messageId: string; }>, z.ZodObject<{ requestId: z.ZodString; sequence: z.ZodNumber; } & { type: z.ZodLiteral<"message.finished">; messageId: z.ZodString; text: z.ZodString; status: z.ZodDefault>; }, "strip", z.ZodTypeAny, { type: "message.finished"; status: "stopped" | "interrupted" | "final"; requestId: string; text: string; sequence: number; messageId: string; }, { type: "message.finished"; requestId: string; text: string; sequence: number; messageId: string; status?: "stopped" | "interrupted" | "final" | undefined; }>, z.ZodObject<{ requestId: z.ZodString; sequence: z.ZodNumber; } & { type: z.ZodLiteral<"tool.started">; activity: z.ZodObject<{ id: z.ZodString; tool: z.ZodUnion<[z.ZodEnum<["repository_read", "repository_grep", "repository_find", "repository_list"]>, z.ZodLiteral<"propose_answer">]>; target: z.ZodString; details: z.ZodOptional; action: z.ZodOptional; optionValue: z.ZodString; }, "strict", z.ZodTypeAny, { type: "show-question"; optionValue: string; }, { type: "show-question"; optionValue: string; }>>; } & { state: z.ZodLiteral<"running">; }, "strict", z.ZodTypeAny, { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "running"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; }, { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "running"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; }>; }, "strip", z.ZodTypeAny, { type: "tool.started"; requestId: string; sequence: number; activity: { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "running"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; }; }, { type: "tool.started"; requestId: string; sequence: number; activity: { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "running"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; }; }>, z.ZodObject<{ requestId: z.ZodString; sequence: z.ZodNumber; } & { type: z.ZodLiteral<"tool.finished">; activity: z.ZodDiscriminatedUnion<"state", [z.ZodObject<{ id: z.ZodString; tool: z.ZodUnion<[z.ZodEnum<["repository_read", "repository_grep", "repository_find", "repository_list"]>, z.ZodLiteral<"propose_answer">]>; target: z.ZodString; details: z.ZodOptional; action: z.ZodOptional; optionValue: z.ZodString; }, "strict", z.ZodTypeAny, { type: "show-question"; optionValue: string; }, { type: "show-question"; optionValue: string; }>>; } & { state: z.ZodLiteral<"success">; }, "strict", z.ZodTypeAny, { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "success"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; }, { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "success"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; tool: z.ZodUnion<[z.ZodEnum<["repository_read", "repository_grep", "repository_find", "repository_list"]>, z.ZodLiteral<"propose_answer">]>; target: z.ZodString; details: z.ZodOptional; action: z.ZodOptional; optionValue: z.ZodString; }, "strict", z.ZodTypeAny, { type: "show-question"; optionValue: string; }, { type: "show-question"; optionValue: string; }>>; } & { state: z.ZodLiteral<"error">; }, "strict", z.ZodTypeAny, { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "error"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; }, { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "error"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; tool: z.ZodUnion<[z.ZodEnum<["repository_read", "repository_grep", "repository_find", "repository_list"]>, z.ZodLiteral<"propose_answer">]>; target: z.ZodString; details: z.ZodOptional; action: z.ZodOptional; optionValue: z.ZodString; }, "strict", z.ZodTypeAny, { type: "show-question"; optionValue: string; }, { type: "show-question"; optionValue: string; }>>; } & { state: z.ZodLiteral<"stale">; }, "strict", z.ZodTypeAny, { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "stale"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; }, { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "stale"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; }>]>; }, "strip", z.ZodTypeAny, { type: "tool.finished"; requestId: string; sequence: number; activity: { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "success"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; } | { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "error"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; } | { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "stale"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; }; }, { type: "tool.finished"; requestId: string; sequence: number; activity: { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "success"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; } | { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "error"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; } | { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "stale"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; }; }>]>, z.ZodObject<{ protocolVersion: z.ZodOptional>; requestId: z.ZodString; type: z.ZodLiteral<"transport">; state: z.ZodEnum<["online", "offline"]>; }, "strict", z.ZodTypeAny, { type: "transport"; requestId: string; state: "online" | "offline"; protocolVersion?: "0.1.12" | undefined; }, { type: "transport"; requestId: string; state: "online" | "offline"; protocolVersion?: "0.1.12" | undefined; }>]>; export declare const QuestionChatSendModeSchema: z.ZodEnum<["turn", "steer"]>; export declare const QuestionChatSendResponseSchema: z.ZodObject<{ status: z.ZodLiteral<"accepted">; clientCommandId: z.ZodString; mode: z.ZodOptional>; }, "strip", z.ZodTypeAny, { status: "accepted"; clientCommandId: string; mode?: "turn" | "steer" | undefined; }, { status: "accepted"; clientCommandId: string; mode?: "turn" | "steer" | undefined; }>; export declare const QuestionChatStopPayloadSchema: z.ZodObject<{ clientCommandId: z.ZodString; }, "strict", z.ZodTypeAny, { clientCommandId: string; }, { clientCommandId: string; }>; export declare const QuestionChatStopResponseSchema: z.ZodObject<{ status: z.ZodLiteral<"accepted">; clientCommandId: z.ZodString; }, "strip", z.ZodTypeAny, { status: "accepted"; clientCommandId: string; }, { status: "accepted"; clientCommandId: string; }>; export declare const QuestionChatUnavailableResponseSchema: z.ZodObject<{ status: z.ZodLiteral<"unavailable">; error: z.ZodObject<{ code: z.ZodEnum<["request_missing", "request_not_pending", "extension_offline", "source_path_missing", "source_leaf_missing", "wrong_owner", "command_timeout", "runtime_failure", "chat_not_started", "invalid_command", "duplicate_command", "runtime_busy", "forbidden_origin", "rate_limited"]>; message: z.ZodString; retryAfterMs: z.ZodOptional; }, "strip", z.ZodTypeAny, { code: "wrong_owner" | "request_missing" | "request_not_pending" | "extension_offline" | "source_path_missing" | "source_leaf_missing" | "command_timeout" | "runtime_failure" | "chat_not_started" | "invalid_command" | "duplicate_command" | "runtime_busy" | "forbidden_origin" | "rate_limited"; message: string; retryAfterMs?: number | undefined; }, { code: "wrong_owner" | "request_missing" | "request_not_pending" | "extension_offline" | "source_path_missing" | "source_leaf_missing" | "command_timeout" | "runtime_failure" | "chat_not_started" | "invalid_command" | "duplicate_command" | "runtime_busy" | "forbidden_origin" | "rate_limited"; message: string; retryAfterMs?: number | undefined; }>; }, "strip", z.ZodTypeAny, { status: "unavailable"; error: { code: "wrong_owner" | "request_missing" | "request_not_pending" | "extension_offline" | "source_path_missing" | "source_leaf_missing" | "command_timeout" | "runtime_failure" | "chat_not_started" | "invalid_command" | "duplicate_command" | "runtime_busy" | "forbidden_origin" | "rate_limited"; message: string; retryAfterMs?: number | undefined; }; }, { status: "unavailable"; error: { code: "wrong_owner" | "request_missing" | "request_not_pending" | "extension_offline" | "source_path_missing" | "source_leaf_missing" | "command_timeout" | "runtime_failure" | "chat_not_started" | "invalid_command" | "duplicate_command" | "runtime_busy" | "forbidden_origin" | "rate_limited"; message: string; retryAfterMs?: number | undefined; }; }>; export declare const QuestionChatSnapshotHttpResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{ status: z.ZodLiteral<"ready">; snapshot: z.ZodObject<{ requestId: z.ZodString; state: z.ZodEnum<["ready", "generating", "stopping", "stopped", "interrupted"]>; forkKind: z.ZodLiteral<"fresh">; model: z.ZodObject<{ id: z.ZodString; source: z.ZodEnum<["postbox-settings", "pi-default"]>; effort: z.ZodOptional>; fallbackReason: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: string; source: "postbox-settings" | "pi-default"; effort?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined; fallbackReason?: string | undefined; }, { id: string; source: "postbox-settings" | "pi-default"; effort?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined; fallbackReason?: string | undefined; }>; sequence: z.ZodDefault; messages: z.ZodArray; text: z.ZodString; status: z.ZodLiteral<"final">; }, "strip", z.ZodTypeAny, { status: "final"; id: string; role: "user"; text: string; }, { status: "final"; id: string; role: "user"; text: string; }>, z.ZodObject<{ id: z.ZodString; role: z.ZodLiteral<"assistant">; text: z.ZodString; status: z.ZodEnum<["streaming", "final", "stopped", "interrupted"]>; }, "strip", z.ZodTypeAny, { status: "stopped" | "interrupted" | "streaming" | "final"; id: string; role: "assistant"; text: string; }, { status: "stopped" | "interrupted" | "streaming" | "final"; id: string; role: "assistant"; text: string; }>]>, "many">; tools: z.ZodDefault, z.ZodLiteral<"propose_answer">]>; target: z.ZodString; details: z.ZodOptional; action: z.ZodOptional; optionValue: z.ZodString; }, "strict", z.ZodTypeAny, { type: "show-question"; optionValue: string; }, { type: "show-question"; optionValue: string; }>>; } & { state: z.ZodLiteral<"running">; }, "strict", z.ZodTypeAny, { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "running"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; }, { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "running"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; tool: z.ZodUnion<[z.ZodEnum<["repository_read", "repository_grep", "repository_find", "repository_list"]>, z.ZodLiteral<"propose_answer">]>; target: z.ZodString; details: z.ZodOptional; action: z.ZodOptional; optionValue: z.ZodString; }, "strict", z.ZodTypeAny, { type: "show-question"; optionValue: string; }, { type: "show-question"; optionValue: string; }>>; } & { state: z.ZodLiteral<"success">; }, "strict", z.ZodTypeAny, { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "success"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; }, { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "success"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; tool: z.ZodUnion<[z.ZodEnum<["repository_read", "repository_grep", "repository_find", "repository_list"]>, z.ZodLiteral<"propose_answer">]>; target: z.ZodString; details: z.ZodOptional; action: z.ZodOptional; optionValue: z.ZodString; }, "strict", z.ZodTypeAny, { type: "show-question"; optionValue: string; }, { type: "show-question"; optionValue: string; }>>; } & { state: z.ZodLiteral<"error">; }, "strict", z.ZodTypeAny, { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "error"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; }, { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "error"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; tool: z.ZodUnion<[z.ZodEnum<["repository_read", "repository_grep", "repository_find", "repository_list"]>, z.ZodLiteral<"propose_answer">]>; target: z.ZodString; details: z.ZodOptional; action: z.ZodOptional; optionValue: z.ZodString; }, "strict", z.ZodTypeAny, { type: "show-question"; optionValue: string; }, { type: "show-question"; optionValue: string; }>>; } & { state: z.ZodLiteral<"stale">; }, "strict", z.ZodTypeAny, { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "stale"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; }, { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "stale"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; }>]>, "many">>; }, "strip", z.ZodTypeAny, { model: { id: string; source: "postbox-settings" | "pi-default"; effort?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined; fallbackReason?: string | undefined; }; requestId: string; state: "ready" | "generating" | "stopping" | "stopped" | "interrupted"; forkKind: "fresh"; sequence: number; messages: ({ status: "final"; id: string; role: "user"; text: string; } | { status: "stopped" | "interrupted" | "streaming" | "final"; id: string; role: "assistant"; text: string; })[]; tools: ({ id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "running"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; } | { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "success"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; } | { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "error"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; } | { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "stale"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; })[]; }, { model: { id: string; source: "postbox-settings" | "pi-default"; effort?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined; fallbackReason?: string | undefined; }; requestId: string; state: "ready" | "generating" | "stopping" | "stopped" | "interrupted"; forkKind: "fresh"; messages: ({ status: "final"; id: string; role: "user"; text: string; } | { status: "stopped" | "interrupted" | "streaming" | "final"; id: string; role: "assistant"; text: string; })[]; sequence?: number | undefined; tools?: ({ id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "running"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; } | { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "success"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; } | { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "error"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; } | { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "stale"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; })[] | undefined; }>; }, "strip", z.ZodTypeAny, { status: "ready"; snapshot: { model: { id: string; source: "postbox-settings" | "pi-default"; effort?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined; fallbackReason?: string | undefined; }; requestId: string; state: "ready" | "generating" | "stopping" | "stopped" | "interrupted"; forkKind: "fresh"; sequence: number; messages: ({ status: "final"; id: string; role: "user"; text: string; } | { status: "stopped" | "interrupted" | "streaming" | "final"; id: string; role: "assistant"; text: string; })[]; tools: ({ id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "running"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; } | { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "success"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; } | { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "error"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; } | { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "stale"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; })[]; }; }, { status: "ready"; snapshot: { model: { id: string; source: "postbox-settings" | "pi-default"; effort?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined; fallbackReason?: string | undefined; }; requestId: string; state: "ready" | "generating" | "stopping" | "stopped" | "interrupted"; forkKind: "fresh"; messages: ({ status: "final"; id: string; role: "user"; text: string; } | { status: "stopped" | "interrupted" | "streaming" | "final"; id: string; role: "assistant"; text: string; })[]; sequence?: number | undefined; tools?: ({ id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "running"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; } | { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "success"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; } | { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "error"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; } | { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "stale"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; })[] | undefined; }; }>, z.ZodObject<{ status: z.ZodLiteral<"unavailable">; error: z.ZodObject<{ code: z.ZodEnum<["request_missing", "request_not_pending", "extension_offline", "source_path_missing", "source_leaf_missing", "wrong_owner", "command_timeout", "runtime_failure", "chat_not_started", "invalid_command", "duplicate_command", "runtime_busy", "forbidden_origin", "rate_limited"]>; message: z.ZodString; retryAfterMs: z.ZodOptional; }, "strip", z.ZodTypeAny, { code: "wrong_owner" | "request_missing" | "request_not_pending" | "extension_offline" | "source_path_missing" | "source_leaf_missing" | "command_timeout" | "runtime_failure" | "chat_not_started" | "invalid_command" | "duplicate_command" | "runtime_busy" | "forbidden_origin" | "rate_limited"; message: string; retryAfterMs?: number | undefined; }, { code: "wrong_owner" | "request_missing" | "request_not_pending" | "extension_offline" | "source_path_missing" | "source_leaf_missing" | "command_timeout" | "runtime_failure" | "chat_not_started" | "invalid_command" | "duplicate_command" | "runtime_busy" | "forbidden_origin" | "rate_limited"; message: string; retryAfterMs?: number | undefined; }>; }, "strip", z.ZodTypeAny, { status: "unavailable"; error: { code: "wrong_owner" | "request_missing" | "request_not_pending" | "extension_offline" | "source_path_missing" | "source_leaf_missing" | "command_timeout" | "runtime_failure" | "chat_not_started" | "invalid_command" | "duplicate_command" | "runtime_busy" | "forbidden_origin" | "rate_limited"; message: string; retryAfterMs?: number | undefined; }; }, { status: "unavailable"; error: { code: "wrong_owner" | "request_missing" | "request_not_pending" | "extension_offline" | "source_path_missing" | "source_leaf_missing" | "command_timeout" | "runtime_failure" | "chat_not_started" | "invalid_command" | "duplicate_command" | "runtime_busy" | "forbidden_origin" | "rate_limited"; message: string; retryAfterMs?: number | undefined; }; }>]>; export declare const QuestionChatSendHttpResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{ status: z.ZodLiteral<"accepted">; clientCommandId: z.ZodString; mode: z.ZodOptional>; }, "strip", z.ZodTypeAny, { status: "accepted"; clientCommandId: string; mode?: "turn" | "steer" | undefined; }, { status: "accepted"; clientCommandId: string; mode?: "turn" | "steer" | undefined; }>, z.ZodObject<{ status: z.ZodLiteral<"unavailable">; error: z.ZodObject<{ code: z.ZodEnum<["request_missing", "request_not_pending", "extension_offline", "source_path_missing", "source_leaf_missing", "wrong_owner", "command_timeout", "runtime_failure", "chat_not_started", "invalid_command", "duplicate_command", "runtime_busy", "forbidden_origin", "rate_limited"]>; message: z.ZodString; retryAfterMs: z.ZodOptional; }, "strip", z.ZodTypeAny, { code: "wrong_owner" | "request_missing" | "request_not_pending" | "extension_offline" | "source_path_missing" | "source_leaf_missing" | "command_timeout" | "runtime_failure" | "chat_not_started" | "invalid_command" | "duplicate_command" | "runtime_busy" | "forbidden_origin" | "rate_limited"; message: string; retryAfterMs?: number | undefined; }, { code: "wrong_owner" | "request_missing" | "request_not_pending" | "extension_offline" | "source_path_missing" | "source_leaf_missing" | "command_timeout" | "runtime_failure" | "chat_not_started" | "invalid_command" | "duplicate_command" | "runtime_busy" | "forbidden_origin" | "rate_limited"; message: string; retryAfterMs?: number | undefined; }>; }, "strip", z.ZodTypeAny, { status: "unavailable"; error: { code: "wrong_owner" | "request_missing" | "request_not_pending" | "extension_offline" | "source_path_missing" | "source_leaf_missing" | "command_timeout" | "runtime_failure" | "chat_not_started" | "invalid_command" | "duplicate_command" | "runtime_busy" | "forbidden_origin" | "rate_limited"; message: string; retryAfterMs?: number | undefined; }; }, { status: "unavailable"; error: { code: "wrong_owner" | "request_missing" | "request_not_pending" | "extension_offline" | "source_path_missing" | "source_leaf_missing" | "command_timeout" | "runtime_failure" | "chat_not_started" | "invalid_command" | "duplicate_command" | "runtime_busy" | "forbidden_origin" | "rate_limited"; message: string; retryAfterMs?: number | undefined; }; }>]>; export declare const QuestionChatStopHttpResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{ status: z.ZodLiteral<"accepted">; clientCommandId: z.ZodString; }, "strip", z.ZodTypeAny, { status: "accepted"; clientCommandId: string; }, { status: "accepted"; clientCommandId: string; }>, z.ZodObject<{ status: z.ZodLiteral<"unavailable">; error: z.ZodObject<{ code: z.ZodEnum<["request_missing", "request_not_pending", "extension_offline", "source_path_missing", "source_leaf_missing", "wrong_owner", "command_timeout", "runtime_failure", "chat_not_started", "invalid_command", "duplicate_command", "runtime_busy", "forbidden_origin", "rate_limited"]>; message: z.ZodString; retryAfterMs: z.ZodOptional; }, "strip", z.ZodTypeAny, { code: "wrong_owner" | "request_missing" | "request_not_pending" | "extension_offline" | "source_path_missing" | "source_leaf_missing" | "command_timeout" | "runtime_failure" | "chat_not_started" | "invalid_command" | "duplicate_command" | "runtime_busy" | "forbidden_origin" | "rate_limited"; message: string; retryAfterMs?: number | undefined; }, { code: "wrong_owner" | "request_missing" | "request_not_pending" | "extension_offline" | "source_path_missing" | "source_leaf_missing" | "command_timeout" | "runtime_failure" | "chat_not_started" | "invalid_command" | "duplicate_command" | "runtime_busy" | "forbidden_origin" | "rate_limited"; message: string; retryAfterMs?: number | undefined; }>; }, "strip", z.ZodTypeAny, { status: "unavailable"; error: { code: "wrong_owner" | "request_missing" | "request_not_pending" | "extension_offline" | "source_path_missing" | "source_leaf_missing" | "command_timeout" | "runtime_failure" | "chat_not_started" | "invalid_command" | "duplicate_command" | "runtime_busy" | "forbidden_origin" | "rate_limited"; message: string; retryAfterMs?: number | undefined; }; }, { status: "unavailable"; error: { code: "wrong_owner" | "request_missing" | "request_not_pending" | "extension_offline" | "source_path_missing" | "source_leaf_missing" | "command_timeout" | "runtime_failure" | "chat_not_started" | "invalid_command" | "duplicate_command" | "runtime_busy" | "forbidden_origin" | "rate_limited"; message: string; retryAfterMs?: number | undefined; }; }>]>; export declare const QuestionChatActivationResponseSchema: z.ZodUnion<[z.ZodObject<{ status: z.ZodLiteral<"ready">; snapshot: z.ZodObject<{ requestId: z.ZodString; state: z.ZodEnum<["ready", "generating", "stopping", "stopped", "interrupted"]>; forkKind: z.ZodLiteral<"fresh">; model: z.ZodObject<{ id: z.ZodString; source: z.ZodEnum<["postbox-settings", "pi-default"]>; effort: z.ZodOptional>; fallbackReason: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: string; source: "postbox-settings" | "pi-default"; effort?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined; fallbackReason?: string | undefined; }, { id: string; source: "postbox-settings" | "pi-default"; effort?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined; fallbackReason?: string | undefined; }>; sequence: z.ZodDefault; messages: z.ZodArray; text: z.ZodString; status: z.ZodLiteral<"final">; }, "strip", z.ZodTypeAny, { status: "final"; id: string; role: "user"; text: string; }, { status: "final"; id: string; role: "user"; text: string; }>, z.ZodObject<{ id: z.ZodString; role: z.ZodLiteral<"assistant">; text: z.ZodString; status: z.ZodEnum<["streaming", "final", "stopped", "interrupted"]>; }, "strip", z.ZodTypeAny, { status: "stopped" | "interrupted" | "streaming" | "final"; id: string; role: "assistant"; text: string; }, { status: "stopped" | "interrupted" | "streaming" | "final"; id: string; role: "assistant"; text: string; }>]>, "many">; tools: z.ZodDefault, z.ZodLiteral<"propose_answer">]>; target: z.ZodString; details: z.ZodOptional; action: z.ZodOptional; optionValue: z.ZodString; }, "strict", z.ZodTypeAny, { type: "show-question"; optionValue: string; }, { type: "show-question"; optionValue: string; }>>; } & { state: z.ZodLiteral<"running">; }, "strict", z.ZodTypeAny, { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "running"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; }, { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "running"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; tool: z.ZodUnion<[z.ZodEnum<["repository_read", "repository_grep", "repository_find", "repository_list"]>, z.ZodLiteral<"propose_answer">]>; target: z.ZodString; details: z.ZodOptional; action: z.ZodOptional; optionValue: z.ZodString; }, "strict", z.ZodTypeAny, { type: "show-question"; optionValue: string; }, { type: "show-question"; optionValue: string; }>>; } & { state: z.ZodLiteral<"success">; }, "strict", z.ZodTypeAny, { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "success"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; }, { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "success"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; tool: z.ZodUnion<[z.ZodEnum<["repository_read", "repository_grep", "repository_find", "repository_list"]>, z.ZodLiteral<"propose_answer">]>; target: z.ZodString; details: z.ZodOptional; action: z.ZodOptional; optionValue: z.ZodString; }, "strict", z.ZodTypeAny, { type: "show-question"; optionValue: string; }, { type: "show-question"; optionValue: string; }>>; } & { state: z.ZodLiteral<"error">; }, "strict", z.ZodTypeAny, { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "error"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; }, { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "error"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; tool: z.ZodUnion<[z.ZodEnum<["repository_read", "repository_grep", "repository_find", "repository_list"]>, z.ZodLiteral<"propose_answer">]>; target: z.ZodString; details: z.ZodOptional; action: z.ZodOptional; optionValue: z.ZodString; }, "strict", z.ZodTypeAny, { type: "show-question"; optionValue: string; }, { type: "show-question"; optionValue: string; }>>; } & { state: z.ZodLiteral<"stale">; }, "strict", z.ZodTypeAny, { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "stale"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; }, { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "stale"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; }>]>, "many">>; }, "strip", z.ZodTypeAny, { model: { id: string; source: "postbox-settings" | "pi-default"; effort?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined; fallbackReason?: string | undefined; }; requestId: string; state: "ready" | "generating" | "stopping" | "stopped" | "interrupted"; forkKind: "fresh"; sequence: number; messages: ({ status: "final"; id: string; role: "user"; text: string; } | { status: "stopped" | "interrupted" | "streaming" | "final"; id: string; role: "assistant"; text: string; })[]; tools: ({ id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "running"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; } | { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "success"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; } | { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "error"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; } | { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "stale"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; })[]; }, { model: { id: string; source: "postbox-settings" | "pi-default"; effort?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined; fallbackReason?: string | undefined; }; requestId: string; state: "ready" | "generating" | "stopping" | "stopped" | "interrupted"; forkKind: "fresh"; messages: ({ status: "final"; id: string; role: "user"; text: string; } | { status: "stopped" | "interrupted" | "streaming" | "final"; id: string; role: "assistant"; text: string; })[]; sequence?: number | undefined; tools?: ({ id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "running"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; } | { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "success"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; } | { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "error"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; } | { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "stale"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; })[] | undefined; }>; }, "strip", z.ZodTypeAny, { status: "ready"; snapshot: { model: { id: string; source: "postbox-settings" | "pi-default"; effort?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined; fallbackReason?: string | undefined; }; requestId: string; state: "ready" | "generating" | "stopping" | "stopped" | "interrupted"; forkKind: "fresh"; sequence: number; messages: ({ status: "final"; id: string; role: "user"; text: string; } | { status: "stopped" | "interrupted" | "streaming" | "final"; id: string; role: "assistant"; text: string; })[]; tools: ({ id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "running"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; } | { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "success"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; } | { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "error"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; } | { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "stale"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; })[]; }; }, { status: "ready"; snapshot: { model: { id: string; source: "postbox-settings" | "pi-default"; effort?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined; fallbackReason?: string | undefined; }; requestId: string; state: "ready" | "generating" | "stopping" | "stopped" | "interrupted"; forkKind: "fresh"; messages: ({ status: "final"; id: string; role: "user"; text: string; } | { status: "stopped" | "interrupted" | "streaming" | "final"; id: string; role: "assistant"; text: string; })[]; sequence?: number | undefined; tools?: ({ id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "running"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; } | { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "success"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; } | { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "error"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; } | { id: string; tool: "repository_read" | "repository_grep" | "repository_find" | "repository_list" | "propose_answer"; target: string; state: "stale"; action?: { type: "show-question"; optionValue: string; } | undefined; details?: string | undefined; })[] | undefined; }; }>, z.ZodObject<{ status: z.ZodLiteral<"unavailable">; error: z.ZodObject<{ code: z.ZodEnum<["request_missing", "request_not_pending", "extension_offline", "source_path_missing", "source_leaf_missing", "wrong_owner", "command_timeout", "runtime_failure", "chat_not_started", "invalid_command", "duplicate_command", "runtime_busy", "forbidden_origin", "rate_limited"]>; message: z.ZodString; retryAfterMs: z.ZodOptional; }, "strip", z.ZodTypeAny, { code: "wrong_owner" | "request_missing" | "request_not_pending" | "extension_offline" | "source_path_missing" | "source_leaf_missing" | "command_timeout" | "runtime_failure" | "chat_not_started" | "invalid_command" | "duplicate_command" | "runtime_busy" | "forbidden_origin" | "rate_limited"; message: string; retryAfterMs?: number | undefined; }, { code: "wrong_owner" | "request_missing" | "request_not_pending" | "extension_offline" | "source_path_missing" | "source_leaf_missing" | "command_timeout" | "runtime_failure" | "chat_not_started" | "invalid_command" | "duplicate_command" | "runtime_busy" | "forbidden_origin" | "rate_limited"; message: string; retryAfterMs?: number | undefined; }>; }, "strip", z.ZodTypeAny, { status: "unavailable"; error: { code: "wrong_owner" | "request_missing" | "request_not_pending" | "extension_offline" | "source_path_missing" | "source_leaf_missing" | "command_timeout" | "runtime_failure" | "chat_not_started" | "invalid_command" | "duplicate_command" | "runtime_busy" | "forbidden_origin" | "rate_limited"; message: string; retryAfterMs?: number | undefined; }; }, { status: "unavailable"; error: { code: "wrong_owner" | "request_missing" | "request_not_pending" | "extension_offline" | "source_path_missing" | "source_leaf_missing" | "command_timeout" | "runtime_failure" | "chat_not_started" | "invalid_command" | "duplicate_command" | "runtime_busy" | "forbidden_origin" | "rate_limited"; message: string; retryAfterMs?: number | undefined; }; }>]>; export type QuestionChatAvailabilityCode = z.infer; export type QuestionChatAvailabilityError = z.infer; export type QuestionChatSource = z.infer; export type QuestionChatModel = z.infer; export type QuestionChatState = z.infer; export type QuestionChatMessage = z.infer; export type QuestionChatToolName = z.infer; export type QuestionChatRepositoryToolName = z.infer; export type QuestionChatPostboxToolName = z.infer; export type QuestionChatToolAction = z.infer; export type QuestionChatToolActivity = z.infer; export type QuestionChatSnapshot = z.infer; export type QuestionChatSendPayload = z.infer; export type QuestionChatSendResponse = z.infer; export type QuestionChatStopPayload = z.infer; export type QuestionChatStopResponse = z.infer; export type QuestionChatStopHttpResponse = z.infer; export type QuestionChatUnavailableResponse = z.infer; export type QuestionChatSnapshotHttpResponse = z.infer; export type QuestionChatSendHttpResponse = z.infer; export type QuestionChatEvent = z.infer; export type QuestionChatTransportEvent = z.infer; export type QuestionChatStreamEvent = z.infer; export type QuestionChatActivationResponse = z.infer; //# sourceMappingURL=chat.d.ts.map