import { z } from "zod"; export { PROTOCOL_VERSION } from "../constants.js"; export declare const PROTOCOL_VERSION_V2: 2; export declare const MAX_FRAME_BYTES: number; export declare const MAX_HISTORY_CHUNK_BYTES: number; export declare const MAX_SESSION_HISTORY_CHUNK_BYTES: number; export declare const MAX_WINDOW_BYTES: number; export declare const MAX_WINDOW_DECODE_BYTES: number; export declare const MAX_FRAGMENT_BYTES: number; export declare const MAX_FRAGMENT_DECODE_BYTES: number; export declare const MAX_ID_CHARS = 256; export declare const MAX_STRING_CHARS: number; export declare const MAX_TEXT_CHARS: number; export declare const MAX_ARRAY_ITEMS = 4096; export type JsonValue = null | boolean | number | string | JsonValue[] | { [key: string]: JsonValue; }; export declare const strictObject: (shape: T) => z.ZodObject<{ -readonly [P in keyof T]: T[P]; }, z.core.$strict>; export declare const idSchema: z.ZodString; export declare const pairingCodeSchema: z.ZodString; export declare const textSchema: z.ZodString; export declare const nonEmptyTextSchema: z.ZodString; export declare const timestampSchema: z.ZodNumber; export declare const positiveIntSchema: z.ZodNumber; /** Dense history ordinals are positive and exactly representable in JavaScript. */ export declare const eventSequenceSchema: z.ZodNumber; export declare const headSequenceSchema: z.ZodNumber; export declare const protocolVersionSchema: z.ZodLiteral<2>; export declare const channelIdSchema: z.ZodString; export declare const historyGenerationSchema: z.ZodString; export declare const jsonValueSchema: z.ZodType; export declare const JsonValueSchema: z.ZodType>; export declare const textBlockSchema: z.ZodObject<{ type: z.ZodLiteral<"text">; text: z.ZodString; truncated: z.ZodOptional>; }, z.core.$strict>; export declare const thinkingBlockSchema: z.ZodObject<{ type: z.ZodLiteral<"thinking">; text: z.ZodString; truncated: z.ZodOptional>; }, z.core.$strict>; export declare const imageMimeSchema: z.ZodString; export declare const imageBlockSchema: z.ZodUnion; mime_type: z.ZodString; data: z.ZodString; byte_length: z.ZodNumber; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; mime_type: z.ZodString; byte_length: z.ZodNumber; omitted: z.ZodLiteral; }, z.core.$strict>]>; export declare const userBlockSchema: z.ZodUnion; text: z.ZodString; truncated: z.ZodOptional>; }, z.core.$strict>, z.ZodUnion; mime_type: z.ZodString; data: z.ZodString; byte_length: z.ZodNumber; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; mime_type: z.ZodString; byte_length: z.ZodNumber; omitted: z.ZodLiteral; }, z.core.$strict>]>]>; export declare const assistantBlockSchema: z.ZodUnion; text: z.ZodString; truncated: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"thinking">; text: z.ZodString; truncated: z.ZodOptional>; }, z.core.$strict>]>; export declare const timelineUserEventSchema: z.ZodObject<{ kind: z.ZodLiteral<"user">; message_id: z.ZodString; blocks: z.ZodArray; text: z.ZodString; truncated: z.ZodOptional>; }, z.core.$strict>, z.ZodUnion; mime_type: z.ZodString; data: z.ZodString; byte_length: z.ZodNumber; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; mime_type: z.ZodString; byte_length: z.ZodNumber; omitted: z.ZodLiteral; }, z.core.$strict>]>]>>; origin: z.ZodEnum<{ unknown: "unknown"; pwa: "pwa"; extension: "extension"; }>; sender_ref: z.ZodOptional; delivery: z.ZodEnum<{ unknown: "unknown"; normal: "normal"; queued: "queued"; }>; status: z.ZodLiteral<"committed">; group_id: z.ZodString; event_id: z.ZodString; event_seq: z.ZodOptional; session_id: z.ZodString; history_generation: z.ZodString; timestamp: z.ZodNumber; }, z.core.$strict>; export declare const timelineAssistantEventSchema: z.ZodObject<{ kind: z.ZodLiteral<"assistant">; blocks: z.ZodArray; text: z.ZodString; truncated: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"thinking">; text: z.ZodString; truncated: z.ZodOptional>; }, z.core.$strict>]>>; status: z.ZodEnum<{ complete: "complete"; interrupted: "interrupted"; }>; group_id: z.ZodString; event_id: z.ZodString; event_seq: z.ZodOptional; session_id: z.ZodString; history_generation: z.ZodString; timestamp: z.ZodNumber; }, z.core.$strict>; export declare const timelineToolEventSchema: z.ZodUnion; tool_call_id: z.ZodString; tool: z.ZodString; args: z.ZodType>; truncated: z.ZodBoolean; status: z.ZodLiteral<"complete">; result: z.ZodType>; error: z.ZodOptional; group_id: z.ZodString; event_id: z.ZodString; event_seq: z.ZodOptional; session_id: z.ZodString; history_generation: z.ZodString; timestamp: z.ZodNumber; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"tool">; tool_call_id: z.ZodString; tool: z.ZodString; args: z.ZodType>; truncated: z.ZodBoolean; status: z.ZodLiteral<"error">; result: z.ZodOptional>>; error: z.ZodString; group_id: z.ZodString; event_id: z.ZodString; event_seq: z.ZodOptional; session_id: z.ZodString; history_generation: z.ZodString; timestamp: z.ZodNumber; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"tool">; tool_call_id: z.ZodString; tool: z.ZodString; args: z.ZodType>; truncated: z.ZodBoolean; status: z.ZodLiteral<"interrupted">; result: z.ZodOptional; error: z.ZodOptional; group_id: z.ZodString; event_id: z.ZodString; event_seq: z.ZodOptional; session_id: z.ZodString; history_generation: z.ZodString; timestamp: z.ZodNumber; }, z.core.$strict>]>; export declare const timelineSystemEventSchema: z.ZodObject<{ kind: z.ZodEnum<{ custom: "custom"; compaction: "compaction"; branch_summary: "branch_summary"; }>; group_id: z.ZodOptional; payload: z.ZodType>; truncated: z.ZodBoolean; event_id: z.ZodString; event_seq: z.ZodOptional; session_id: z.ZodString; history_generation: z.ZodString; timestamp: z.ZodNumber; }, z.core.$strict>; export declare const timelineProviderErrorEventSchema: z.ZodObject<{ kind: z.ZodLiteral<"provider_error">; message: z.ZodString; group_id: z.ZodString; event_id: z.ZodString; event_seq: z.ZodOptional; session_id: z.ZodString; history_generation: z.ZodString; timestamp: z.ZodNumber; }, z.core.$strict>; export declare const timelineEventSchema: z.ZodUnion; message_id: z.ZodString; blocks: z.ZodArray; text: z.ZodString; truncated: z.ZodOptional>; }, z.core.$strict>, z.ZodUnion; mime_type: z.ZodString; data: z.ZodString; byte_length: z.ZodNumber; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; mime_type: z.ZodString; byte_length: z.ZodNumber; omitted: z.ZodLiteral; }, z.core.$strict>]>]>>; origin: z.ZodEnum<{ unknown: "unknown"; pwa: "pwa"; extension: "extension"; }>; sender_ref: z.ZodOptional; delivery: z.ZodEnum<{ unknown: "unknown"; normal: "normal"; queued: "queued"; }>; status: z.ZodLiteral<"committed">; group_id: z.ZodString; event_id: z.ZodString; event_seq: z.ZodOptional; session_id: z.ZodString; history_generation: z.ZodString; timestamp: z.ZodNumber; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"assistant">; blocks: z.ZodArray; text: z.ZodString; truncated: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"thinking">; text: z.ZodString; truncated: z.ZodOptional>; }, z.core.$strict>]>>; status: z.ZodEnum<{ complete: "complete"; interrupted: "interrupted"; }>; group_id: z.ZodString; event_id: z.ZodString; event_seq: z.ZodOptional; session_id: z.ZodString; history_generation: z.ZodString; timestamp: z.ZodNumber; }, z.core.$strict>, z.ZodUnion; tool_call_id: z.ZodString; tool: z.ZodString; args: z.ZodType>; truncated: z.ZodBoolean; status: z.ZodLiteral<"complete">; result: z.ZodType>; error: z.ZodOptional; group_id: z.ZodString; event_id: z.ZodString; event_seq: z.ZodOptional; session_id: z.ZodString; history_generation: z.ZodString; timestamp: z.ZodNumber; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"tool">; tool_call_id: z.ZodString; tool: z.ZodString; args: z.ZodType>; truncated: z.ZodBoolean; status: z.ZodLiteral<"error">; result: z.ZodOptional>>; error: z.ZodString; group_id: z.ZodString; event_id: z.ZodString; event_seq: z.ZodOptional; session_id: z.ZodString; history_generation: z.ZodString; timestamp: z.ZodNumber; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"tool">; tool_call_id: z.ZodString; tool: z.ZodString; args: z.ZodType>; truncated: z.ZodBoolean; status: z.ZodLiteral<"interrupted">; result: z.ZodOptional; error: z.ZodOptional; group_id: z.ZodString; event_id: z.ZodString; event_seq: z.ZodOptional; session_id: z.ZodString; history_generation: z.ZodString; timestamp: z.ZodNumber; }, z.core.$strict>]>, z.ZodObject<{ kind: z.ZodEnum<{ custom: "custom"; compaction: "compaction"; branch_summary: "branch_summary"; }>; group_id: z.ZodOptional; payload: z.ZodType>; truncated: z.ZodBoolean; event_id: z.ZodString; event_seq: z.ZodOptional; session_id: z.ZodString; history_generation: z.ZodString; timestamp: z.ZodNumber; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"provider_error">; message: z.ZodString; group_id: z.ZodString; event_id: z.ZodString; event_seq: z.ZodOptional; session_id: z.ZodString; history_generation: z.ZodString; timestamp: z.ZodNumber; }, z.core.$strict>]>; export declare const TimelineEventSchema: z.ZodUnion; message_id: z.ZodString; blocks: z.ZodArray; text: z.ZodString; truncated: z.ZodOptional>; }, z.core.$strict>, z.ZodUnion; mime_type: z.ZodString; data: z.ZodString; byte_length: z.ZodNumber; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; mime_type: z.ZodString; byte_length: z.ZodNumber; omitted: z.ZodLiteral; }, z.core.$strict>]>]>>; origin: z.ZodEnum<{ unknown: "unknown"; pwa: "pwa"; extension: "extension"; }>; sender_ref: z.ZodOptional; delivery: z.ZodEnum<{ unknown: "unknown"; normal: "normal"; queued: "queued"; }>; status: z.ZodLiteral<"committed">; group_id: z.ZodString; event_id: z.ZodString; event_seq: z.ZodOptional; session_id: z.ZodString; history_generation: z.ZodString; timestamp: z.ZodNumber; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"assistant">; blocks: z.ZodArray; text: z.ZodString; truncated: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"thinking">; text: z.ZodString; truncated: z.ZodOptional>; }, z.core.$strict>]>>; status: z.ZodEnum<{ complete: "complete"; interrupted: "interrupted"; }>; group_id: z.ZodString; event_id: z.ZodString; event_seq: z.ZodOptional; session_id: z.ZodString; history_generation: z.ZodString; timestamp: z.ZodNumber; }, z.core.$strict>, z.ZodUnion; tool_call_id: z.ZodString; tool: z.ZodString; args: z.ZodType>; truncated: z.ZodBoolean; status: z.ZodLiteral<"complete">; result: z.ZodType>; error: z.ZodOptional; group_id: z.ZodString; event_id: z.ZodString; event_seq: z.ZodOptional; session_id: z.ZodString; history_generation: z.ZodString; timestamp: z.ZodNumber; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"tool">; tool_call_id: z.ZodString; tool: z.ZodString; args: z.ZodType>; truncated: z.ZodBoolean; status: z.ZodLiteral<"error">; result: z.ZodOptional>>; error: z.ZodString; group_id: z.ZodString; event_id: z.ZodString; event_seq: z.ZodOptional; session_id: z.ZodString; history_generation: z.ZodString; timestamp: z.ZodNumber; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"tool">; tool_call_id: z.ZodString; tool: z.ZodString; args: z.ZodType>; truncated: z.ZodBoolean; status: z.ZodLiteral<"interrupted">; result: z.ZodOptional; error: z.ZodOptional; group_id: z.ZodString; event_id: z.ZodString; event_seq: z.ZodOptional; session_id: z.ZodString; history_generation: z.ZodString; timestamp: z.ZodNumber; }, z.core.$strict>]>, z.ZodObject<{ kind: z.ZodEnum<{ custom: "custom"; compaction: "compaction"; branch_summary: "branch_summary"; }>; group_id: z.ZodOptional; payload: z.ZodType>; truncated: z.ZodBoolean; event_id: z.ZodString; event_seq: z.ZodOptional; session_id: z.ZodString; history_generation: z.ZodString; timestamp: z.ZodNumber; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"provider_error">; message: z.ZodString; group_id: z.ZodString; event_id: z.ZodString; event_seq: z.ZodOptional; session_id: z.ZodString; history_generation: z.ZodString; timestamp: z.ZodNumber; }, z.core.$strict>]>; export declare const sequencedTimelineEventSchema: z.ZodIntersection; message_id: z.ZodString; blocks: z.ZodArray; text: z.ZodString; truncated: z.ZodOptional>; }, z.core.$strict>, z.ZodUnion; mime_type: z.ZodString; data: z.ZodString; byte_length: z.ZodNumber; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; mime_type: z.ZodString; byte_length: z.ZodNumber; omitted: z.ZodLiteral; }, z.core.$strict>]>]>>; origin: z.ZodEnum<{ unknown: "unknown"; pwa: "pwa"; extension: "extension"; }>; sender_ref: z.ZodOptional; delivery: z.ZodEnum<{ unknown: "unknown"; normal: "normal"; queued: "queued"; }>; status: z.ZodLiteral<"committed">; group_id: z.ZodString; event_id: z.ZodString; event_seq: z.ZodOptional; session_id: z.ZodString; history_generation: z.ZodString; timestamp: z.ZodNumber; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"assistant">; blocks: z.ZodArray; text: z.ZodString; truncated: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"thinking">; text: z.ZodString; truncated: z.ZodOptional>; }, z.core.$strict>]>>; status: z.ZodEnum<{ complete: "complete"; interrupted: "interrupted"; }>; group_id: z.ZodString; event_id: z.ZodString; event_seq: z.ZodOptional; session_id: z.ZodString; history_generation: z.ZodString; timestamp: z.ZodNumber; }, z.core.$strict>, z.ZodUnion; tool_call_id: z.ZodString; tool: z.ZodString; args: z.ZodType>; truncated: z.ZodBoolean; status: z.ZodLiteral<"complete">; result: z.ZodType>; error: z.ZodOptional; group_id: z.ZodString; event_id: z.ZodString; event_seq: z.ZodOptional; session_id: z.ZodString; history_generation: z.ZodString; timestamp: z.ZodNumber; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"tool">; tool_call_id: z.ZodString; tool: z.ZodString; args: z.ZodType>; truncated: z.ZodBoolean; status: z.ZodLiteral<"error">; result: z.ZodOptional>>; error: z.ZodString; group_id: z.ZodString; event_id: z.ZodString; event_seq: z.ZodOptional; session_id: z.ZodString; history_generation: z.ZodString; timestamp: z.ZodNumber; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"tool">; tool_call_id: z.ZodString; tool: z.ZodString; args: z.ZodType>; truncated: z.ZodBoolean; status: z.ZodLiteral<"interrupted">; result: z.ZodOptional; error: z.ZodOptional; group_id: z.ZodString; event_id: z.ZodString; event_seq: z.ZodOptional; session_id: z.ZodString; history_generation: z.ZodString; timestamp: z.ZodNumber; }, z.core.$strict>]>, z.ZodObject<{ kind: z.ZodEnum<{ custom: "custom"; compaction: "compaction"; branch_summary: "branch_summary"; }>; group_id: z.ZodOptional; payload: z.ZodType>; truncated: z.ZodBoolean; event_id: z.ZodString; event_seq: z.ZodOptional; session_id: z.ZodString; history_generation: z.ZodString; timestamp: z.ZodNumber; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"provider_error">; message: z.ZodString; group_id: z.ZodString; event_id: z.ZodString; event_seq: z.ZodOptional; session_id: z.ZodString; history_generation: z.ZodString; timestamp: z.ZodNumber; }, z.core.$strict>]>, z.ZodObject<{ event_seq: z.ZodNumber; }, z.core.$strip>>; export type TimelineEvent = z.infer; export type SequencedTimelineEvent = z.infer; export type TimelineUserEvent = z.infer; export declare const timelinePartialSchema: z.ZodUnion; kind: z.ZodLiteral<"assistant">; blocks: z.ZodOptional; text: z.ZodString; truncated: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"thinking">; text: z.ZodString; truncated: z.ZodOptional>; }, z.core.$strict>]>>>; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"timeline_partial">; session_id: z.ZodString; history_generation: z.ZodString; group_id: z.ZodString; partial_id: z.ZodString; status: z.ZodEnum<{ running: "running"; delta: "delta"; }>; }, z.core.$strict>, z.ZodObject<{ delta: z.ZodOptional; kind: z.ZodLiteral<"thinking">; blocks: z.ZodOptional; text: z.ZodString; truncated: z.ZodOptional>; }, z.core.$strict>>>; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"timeline_partial">; session_id: z.ZodString; history_generation: z.ZodString; group_id: z.ZodString; partial_id: z.ZodString; status: z.ZodEnum<{ running: "running"; delta: "delta"; }>; }, z.core.$strict>, z.ZodObject<{ delta: z.ZodOptional; kind: z.ZodLiteral<"tool">; tool_call_id: z.ZodString; tool: z.ZodString; args: z.ZodOptional>>; blocks: z.ZodOptional; text: z.ZodString; truncated: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"thinking">; text: z.ZodString; truncated: z.ZodOptional>; }, z.core.$strict>]>>>; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"timeline_partial">; session_id: z.ZodString; history_generation: z.ZodString; group_id: z.ZodString; partial_id: z.ZodString; status: z.ZodEnum<{ running: "running"; delta: "delta"; }>; }, z.core.$strict>]>; export declare const TimelinePartialSchema: z.ZodUnion; kind: z.ZodLiteral<"assistant">; blocks: z.ZodOptional; text: z.ZodString; truncated: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"thinking">; text: z.ZodString; truncated: z.ZodOptional>; }, z.core.$strict>]>>>; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"timeline_partial">; session_id: z.ZodString; history_generation: z.ZodString; group_id: z.ZodString; partial_id: z.ZodString; status: z.ZodEnum<{ running: "running"; delta: "delta"; }>; }, z.core.$strict>, z.ZodObject<{ delta: z.ZodOptional; kind: z.ZodLiteral<"thinking">; blocks: z.ZodOptional; text: z.ZodString; truncated: z.ZodOptional>; }, z.core.$strict>>>; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"timeline_partial">; session_id: z.ZodString; history_generation: z.ZodString; group_id: z.ZodString; partial_id: z.ZodString; status: z.ZodEnum<{ running: "running"; delta: "delta"; }>; }, z.core.$strict>, z.ZodObject<{ delta: z.ZodOptional; kind: z.ZodLiteral<"tool">; tool_call_id: z.ZodString; tool: z.ZodString; args: z.ZodOptional>>; blocks: z.ZodOptional; text: z.ZodString; truncated: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"thinking">; text: z.ZodString; truncated: z.ZodOptional>; }, z.core.$strict>]>>>; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"timeline_partial">; session_id: z.ZodString; history_generation: z.ZodString; group_id: z.ZodString; partial_id: z.ZodString; status: z.ZodEnum<{ running: "running"; delta: "delta"; }>; }, z.core.$strict>]>; export type TimelinePartial = z.infer; export declare const base64Schema: z.ZodString; export declare const timelineEventFragmentSchema: z.ZodObject<{ event_id: z.ZodString; index: z.ZodNumber; data_base64: z.ZodString; final: z.ZodBoolean; }, z.core.$strict>; export type TimelineEventFragment = z.infer; export declare const historyFragmentSchema: z.ZodObject<{ event_id: z.ZodString; index: z.ZodNumber; data_base64: z.ZodString; final: z.ZodBoolean; }, z.core.$strict>; export declare const TimelineEventFragmentSchema: z.ZodObject<{ event_id: z.ZodString; index: z.ZodNumber; data_base64: z.ZodString; final: z.ZodBoolean; }, z.core.$strict>; export declare const HistoryFragmentSchema: z.ZodObject<{ event_id: z.ZodString; index: z.ZodNumber; data_base64: z.ZodString; final: z.ZodBoolean; }, z.core.$strict>; export declare const extensionUiRequestPayloadSchema: z.ZodUnion; id: z.ZodString; method: z.ZodLiteral<"select">; title: z.ZodString; options: z.ZodArray; ask: z.ZodOptional; source: z.ZodString; title: z.ZodNullable; questions: z.ZodArray; required: z.ZodBoolean; presentedType: z.ZodOptional>; requestedType: z.ZodOptional>; options: z.ZodArray; preview: z.ZodOptional; freeform: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>>; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"extension_ui_request">; id: z.ZodString; method: z.ZodLiteral<"confirm">; title: z.ZodString; message: z.ZodString; ask: z.ZodOptional; source: z.ZodString; title: z.ZodNullable; questions: z.ZodArray; required: z.ZodBoolean; presentedType: z.ZodOptional>; requestedType: z.ZodOptional>; options: z.ZodArray; preview: z.ZodOptional; freeform: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>>; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"extension_ui_request">; id: z.ZodString; method: z.ZodLiteral<"input">; title: z.ZodString; placeholder: z.ZodOptional; ask: z.ZodOptional; source: z.ZodString; title: z.ZodNullable; questions: z.ZodArray; required: z.ZodBoolean; presentedType: z.ZodOptional>; requestedType: z.ZodOptional>; options: z.ZodArray; preview: z.ZodOptional; freeform: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>>; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"extension_ui_request">; id: z.ZodString; method: z.ZodLiteral<"editor">; title: z.ZodString; prefill: z.ZodOptional; ask: z.ZodOptional; source: z.ZodString; title: z.ZodNullable; questions: z.ZodArray; required: z.ZodBoolean; presentedType: z.ZodOptional>; requestedType: z.ZodOptional>; options: z.ZodArray; preview: z.ZodOptional; freeform: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>>; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"extension_ui_request">; id: z.ZodString; method: z.ZodLiteral<"notify">; message: z.ZodString; notify_type: z.ZodOptional>; }, z.core.$strict>]>; export type ExtensionUiRequestPayload = z.infer; export declare const extensionUiResponsePayloadSchema: z.ZodUnion; id: z.ZodString; value: z.ZodString; ask: z.ZodOptional; mode: z.ZodOptional>; answers: z.ZodRecord>; customText: z.ZodOptional; note: z.ZodOptional; optionNotes: z.ZodOptional>; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ flow_id: z.ZodString; kind: z.ZodLiteral<"cancel">; }, z.core.$strict>]>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"extension_ui_response">; id: z.ZodString; confirmed: z.ZodBoolean; ask: z.ZodOptional; mode: z.ZodOptional>; answers: z.ZodRecord>; customText: z.ZodOptional; note: z.ZodOptional; optionNotes: z.ZodOptional>; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ flow_id: z.ZodString; kind: z.ZodLiteral<"cancel">; }, z.core.$strict>]>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"extension_ui_response">; id: z.ZodString; cancelled: z.ZodLiteral; ask: z.ZodOptional; mode: z.ZodOptional>; answers: z.ZodRecord>; customText: z.ZodOptional; note: z.ZodOptional; optionNotes: z.ZodOptional>; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ flow_id: z.ZodString; kind: z.ZodLiteral<"cancel">; }, z.core.$strict>]>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"extension_ui_response">; id: z.ZodString; ask: z.ZodUnion; mode: z.ZodOptional>; answers: z.ZodRecord>; customText: z.ZodOptional; note: z.ZodOptional; optionNotes: z.ZodOptional>; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ flow_id: z.ZodString; kind: z.ZodLiteral<"cancel">; }, z.core.$strict>]>; }, z.core.$strict>]>; export type ExtensionUiResponsePayload = z.infer; export declare const thinkingLevelSchema: z.ZodEnum<{ off: "off"; minimal: "minimal"; low: "low"; medium: "medium"; high: "high"; xhigh: "xhigh"; }>; export type ThinkingLevel = z.infer; export declare const actionNameSchema: z.ZodEnum<{ session_new: "session_new"; session_compact: "session_compact"; model_set: "model_set"; thinking_set: "thinking_set"; }>; export declare const byeReasonSchema: z.ZodEnum<{ peer_stop: "peer_stop"; session_replaced: "session_replaced"; shutdown: "shutdown"; }>; export declare const wireImageSchema: z.ZodObject<{ data: z.ZodString; mime: z.ZodString; }, z.core.$strict>; export type WireImage = z.infer; export declare const queuedMessageItemSchema: z.ZodObject<{ id: z.ZodString; text: z.ZodString; images: z.ZodOptional>>; sender_ref: z.ZodOptional; editable: z.ZodBoolean; created_at: z.ZodNumber; }, z.core.$strict>; export declare const wireModelSchema: z.ZodObject<{ id: z.ZodString; name: z.ZodString; provider: z.ZodString; reasoning: z.ZodBoolean; context_window: z.ZodNumber; vision: z.ZodBoolean; }, z.core.$strict>; export type WireModel = z.infer; export declare const harnessSchema: z.ZodObject<{ name: z.ZodString; version: z.ZodString; }, z.core.$strict>; export declare const CLIENT_FRAME_TYPES: readonly ["pair_request", "session_hello", "user_message", "user_message_observed", "session_sync", "ping", "cancel", "session_new", "session_compact", "model_set", "thinking_set", "list_models", "queued_message_set", "queued_message_clear", "queued_message_steer", "approve_tool", "extension_ui_response"]; export declare const SERVER_FRAME_TYPES: readonly ["pair_ok", "pair_error", "session_ready", "user_message_started", "user_message_status", "timeline_event", "timeline_partial", "timeline_event_fragment", "session_history_chunk", "protocol_error", "reset", "pong", "cancelled", "action_ok", "action_error", "models_list", "queued_message_state", "extension_ui_request", "bye"]; export type ClientFrameType = (typeof CLIENT_FRAME_TYPES)[number]; export type ServerFrameType = (typeof SERVER_FRAME_TYPES)[number];