import { z } from "zod"; import type { TimelineEvent, TimelinePartial } from "./schema.js"; export declare const pairRequestFrameSchema: z.ZodObject<{ type: z.ZodLiteral<"pair_request">; id: z.ZodString; code: z.ZodString; device_name: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>; export declare const sessionHelloFrameSchema: z.ZodObject<{ type: z.ZodLiteral<"session_hello">; id: z.ZodString; channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>; export declare const userMessageFrameSchema: z.ZodObject<{ client_request_id: z.ZodString; text: z.ZodString; images: z.ZodOptional>>; streaming_behavior: z.ZodOptional>; channel_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"user_message">; id: z.ZodString; }, z.core.$strict>; export declare const userMessageObservedFrameSchema: z.ZodObject<{ client_request_id: z.ZodString; message_id: z.ZodString; status: z.ZodLiteral<"committed">; channel_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"user_message_observed">; id: z.ZodString; }, z.core.$strict>; export declare const sessionSyncFrameSchema: z.ZodObject<{ before: z.ZodNullable; limit: z.ZodDefault; channel_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"session_sync">; id: z.ZodString; }, z.core.$strict>; export declare const pingFrameSchema: z.ZodObject<{ type: z.ZodLiteral<"ping">; id: z.ZodString; channel_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>; export declare const cancelFrameSchema: z.ZodObject<{ channel_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"cancel">; id: z.ZodString; }, z.core.$strict>; export declare const sessionNewFrameSchema: z.ZodObject<{ channel_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"session_new">; id: z.ZodString; }, z.core.$strict>; export declare const sessionCompactFrameSchema: z.ZodObject<{ channel_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"session_compact">; id: z.ZodString; }, z.core.$strict>; export declare const modelSetFrameSchema: z.ZodObject<{ provider: z.ZodString; model_id: z.ZodString; channel_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"model_set">; id: z.ZodString; }, z.core.$strict>; export declare const thinkingSetFrameSchema: z.ZodObject<{ level: z.ZodEnum<{ off: "off"; minimal: "minimal"; low: "low"; medium: "medium"; high: "high"; xhigh: "xhigh"; }>; channel_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"thinking_set">; id: z.ZodString; }, z.core.$strict>; export declare const listModelsFrameSchema: z.ZodObject<{ channel_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"list_models">; id: z.ZodString; }, z.core.$strict>; export declare const queuedMessageSetFrameSchema: z.ZodObject<{ text: z.ZodString; images: z.ZodOptional>>; channel_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"queued_message_set">; id: z.ZodString; }, z.core.$strict>; export declare const queuedMessageClearFrameSchema: z.ZodObject<{ target_id: z.ZodOptional; channel_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"queued_message_clear">; id: z.ZodString; }, z.core.$strict>; export declare const queuedMessageSteerFrameSchema: z.ZodObject<{ target_id: z.ZodString; channel_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"queued_message_steer">; id: z.ZodString; }, z.core.$strict>; export declare const approveToolFrameSchema: z.ZodObject<{ tool_call_id: z.ZodString; decision: z.ZodEnum<{ allow: "allow"; deny: "deny"; }>; channel_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"approve_tool">; id: z.ZodString; }, z.core.$strict>; export declare const extensionUiResponseFrameSchema: 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>]>>>; channel_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"extension_ui_response">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ 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>]>>>; channel_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"extension_ui_response">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ 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>]>>>; channel_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"extension_ui_response">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ 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>]>; channel_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"extension_ui_response">; id: z.ZodString; }, z.core.$strict>]>; export declare const pairOkFrameSchema: z.ZodObject<{ type: z.ZodLiteral<"pair_ok">; in_reply_to: z.ZodString; session_name: z.ZodString; session_started_at: z.ZodNumber; endpoint_id: z.ZodString; harness: z.ZodOptional>; hostname: z.ZodOptional; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>; export declare const pairErrorFrameSchema: z.ZodObject<{ type: z.ZodLiteral<"pair_error">; in_reply_to: z.ZodString; code: z.ZodEnum<{ token_expired: "token_expired"; token_consumed: "token_consumed"; token_unknown: "token_unknown"; internal_error: "internal_error"; }>; message: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>; export declare const sessionReadyFrameSchema: z.ZodObject<{ type: z.ZodLiteral<"session_ready">; in_reply_to: z.ZodString; session_id: z.ZodString; history_generation: z.ZodString; head_seq: z.ZodNumber; self_sender_ref: z.ZodString; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>; export declare const userMessageStartedFrameSchema: z.ZodObject<{ type: z.ZodLiteral<"user_message_started">; in_reply_to: z.ZodString; session_id: z.ZodString; history_generation: z.ZodString; message: z.ZodObject<{ id: z.ZodString; group_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"; }>; }, z.core.$strict>; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>; export declare const userMessageStatusFrameSchema: z.ZodUnion; in_reply_to: z.ZodString; session_id: z.ZodString; history_generation: z.ZodString; client_request_id: z.ZodString; status: z.ZodLiteral<"received">; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"user_message_status">; in_reply_to: z.ZodString; session_id: z.ZodString; history_generation: z.ZodString; client_request_id: z.ZodString; status: z.ZodLiteral<"accepted">; message_id: z.ZodOptional; group_id: z.ZodOptional; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"user_message_status">; in_reply_to: z.ZodString; session_id: z.ZodString; history_generation: z.ZodString; client_request_id: z.ZodString; status: z.ZodLiteral<"committed">; message_id: z.ZodString; group_id: z.ZodOptional; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"user_message_status">; in_reply_to: z.ZodString; session_id: z.ZodString; history_generation: z.ZodString; client_request_id: z.ZodString; status: z.ZodLiteral<"unknown_delivery">; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>]>; export declare const timelineEventFrameSchema: z.ZodObject<{ type: z.ZodLiteral<"timeline_event">; event: z.ZodType<{ kind: "user"; message_id: string; blocks: ({ type: "text"; text: string; truncated?: true | undefined; } | { type: "image"; mime_type: string; data: string; byte_length: number; } | { type: "image"; mime_type: string; byte_length: number; omitted: true; })[]; origin: "unknown" | "pwa" | "extension"; delivery: "unknown" | "normal" | "queued"; status: "committed"; group_id: string; event_id: string; session_id: string; history_generation: string; timestamp: number; sender_ref?: string | undefined; event_seq?: number | undefined; } | { kind: "assistant"; blocks: ({ type: "text"; text: string; truncated?: true | undefined; } | { type: "thinking"; text: string; truncated?: true | undefined; })[]; status: "complete" | "interrupted"; group_id: string; event_id: string; session_id: string; history_generation: string; timestamp: number; event_seq?: number | undefined; } | { kind: "tool"; tool_call_id: string; tool: string; args: import("./schema.js").JsonValue; truncated: boolean; status: "complete"; result: import("./schema.js").JsonValue; group_id: string; event_id: string; session_id: string; history_generation: string; timestamp: number; error?: undefined; event_seq?: number | undefined; } | { kind: "tool"; tool_call_id: string; tool: string; args: import("./schema.js").JsonValue; truncated: boolean; status: "error"; error: string; group_id: string; event_id: string; session_id: string; history_generation: string; timestamp: number; result?: import("./schema.js").JsonValue | undefined; event_seq?: number | undefined; } | { kind: "tool"; tool_call_id: string; tool: string; args: import("./schema.js").JsonValue; truncated: boolean; status: "interrupted"; group_id: string; event_id: string; session_id: string; history_generation: string; timestamp: number; result?: undefined; error?: undefined; event_seq?: number | undefined; } | { kind: "custom" | "compaction" | "branch_summary"; payload: import("./schema.js").JsonValue; truncated: boolean; event_id: string; session_id: string; history_generation: string; timestamp: number; group_id?: string | undefined; event_seq?: number | undefined; } | { kind: "provider_error"; message: string; group_id: string; event_id: string; session_id: string; history_generation: string; timestamp: number; event_seq?: number | undefined; }, unknown, z.core.$ZodTypeInternals<{ kind: "user"; message_id: string; blocks: ({ type: "text"; text: string; truncated?: true | undefined; } | { type: "image"; mime_type: string; data: string; byte_length: number; } | { type: "image"; mime_type: string; byte_length: number; omitted: true; })[]; origin: "unknown" | "pwa" | "extension"; delivery: "unknown" | "normal" | "queued"; status: "committed"; group_id: string; event_id: string; session_id: string; history_generation: string; timestamp: number; sender_ref?: string | undefined; event_seq?: number | undefined; } | { kind: "assistant"; blocks: ({ type: "text"; text: string; truncated?: true | undefined; } | { type: "thinking"; text: string; truncated?: true | undefined; })[]; status: "complete" | "interrupted"; group_id: string; event_id: string; session_id: string; history_generation: string; timestamp: number; event_seq?: number | undefined; } | { kind: "tool"; tool_call_id: string; tool: string; args: import("./schema.js").JsonValue; truncated: boolean; status: "complete"; result: import("./schema.js").JsonValue; group_id: string; event_id: string; session_id: string; history_generation: string; timestamp: number; error?: undefined; event_seq?: number | undefined; } | { kind: "tool"; tool_call_id: string; tool: string; args: import("./schema.js").JsonValue; truncated: boolean; status: "error"; error: string; group_id: string; event_id: string; session_id: string; history_generation: string; timestamp: number; result?: import("./schema.js").JsonValue | undefined; event_seq?: number | undefined; } | { kind: "tool"; tool_call_id: string; tool: string; args: import("./schema.js").JsonValue; truncated: boolean; status: "interrupted"; group_id: string; event_id: string; session_id: string; history_generation: string; timestamp: number; result?: undefined; error?: undefined; event_seq?: number | undefined; } | { kind: "custom" | "compaction" | "branch_summary"; payload: import("./schema.js").JsonValue; truncated: boolean; event_id: string; session_id: string; history_generation: string; timestamp: number; group_id?: string | undefined; event_seq?: number | undefined; } | { kind: "provider_error"; message: string; group_id: string; event_id: string; session_id: string; history_generation: string; timestamp: number; event_seq?: number | undefined; }, unknown>>; session_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>; export declare const timelinePartialFrameSchema: 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 timelineEventFragmentFrameSchema: z.ZodObject<{ type: z.ZodLiteral<"timeline_event_fragment">; event_id: z.ZodString; index: z.ZodNumber; data_base64: z.ZodString; final: z.ZodBoolean; session_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>; export declare const sessionHistoryChunkFrameSchema: z.ZodUnion; next_before: z.ZodOptional; eos: z.ZodOptional; type: z.ZodLiteral<"session_history_chunk">; in_reply_to: z.ZodString; session_id: z.ZodString; history_generation: z.ZodString; snapshot_head: z.ZodString; chunk_index: z.ZodNumber; events: z.ZodArray>>; fragments: z.ZodArray>; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>, z.ZodObject<{ final_chunk: z.ZodLiteral; eos: z.ZodLiteral; next_before: z.ZodOptional; type: z.ZodLiteral<"session_history_chunk">; in_reply_to: z.ZodString; session_id: z.ZodString; history_generation: z.ZodString; snapshot_head: z.ZodString; chunk_index: z.ZodNumber; events: z.ZodArray>>; fragments: z.ZodArray>; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>, z.ZodObject<{ final_chunk: z.ZodLiteral; eos: z.ZodLiteral; next_before: z.ZodNumber; type: z.ZodLiteral<"session_history_chunk">; in_reply_to: z.ZodString; session_id: z.ZodString; history_generation: z.ZodString; snapshot_head: z.ZodString; chunk_index: z.ZodNumber; events: z.ZodArray>>; fragments: z.ZodArray>; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>]>; export declare const protocolErrorFrameSchema: z.ZodUnion; in_reply_to: z.ZodOptional; code: z.ZodEnum<{ internal_error: "internal_error"; protocol_upgrade_required: "protocol_upgrade_required"; invalid_message: "invalid_message"; unsupported_type: "unsupported_type"; invalid_channel: "invalid_channel"; invalid_generation: "invalid_generation"; invalid_cursor: "invalid_cursor"; reset_required: "reset_required"; too_large: "too_large"; }>; message: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"protocol_error">; in_reply_to: z.ZodOptional; code: z.ZodEnum<{ internal_error: "internal_error"; protocol_upgrade_required: "protocol_upgrade_required"; invalid_message: "invalid_message"; unsupported_type: "unsupported_type"; invalid_channel: "invalid_channel"; invalid_generation: "invalid_generation"; invalid_cursor: "invalid_cursor"; reset_required: "reset_required"; too_large: "too_large"; }>; message: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>]>; export declare const resetFrameSchema: z.ZodObject<{ type: z.ZodLiteral<"reset">; session_id: z.ZodString; history_generation: z.ZodString; reason: z.ZodEnum<{ session_replaced: "session_replaced"; invalid_cursor: "invalid_cursor"; generation_changed: "generation_changed"; branch_changed: "branch_changed"; conflict: "conflict"; }>; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>; export declare const pongFrameSchema: z.ZodObject<{ type: z.ZodLiteral<"pong">; in_reply_to: z.ZodString; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>; export declare const cancelledFrameSchema: z.ZodObject<{ type: z.ZodLiteral<"cancelled">; in_reply_to: z.ZodString; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>; export declare const actionOkFrameSchema: z.ZodObject<{ type: z.ZodLiteral<"action_ok">; in_reply_to: z.ZodString; action: z.ZodEnum<{ session_new: "session_new"; session_compact: "session_compact"; model_set: "model_set"; thinking_set: "thinking_set"; }>; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>; export declare const actionErrorFrameSchema: z.ZodObject<{ type: z.ZodLiteral<"action_error">; in_reply_to: z.ZodString; action: z.ZodEnum<{ session_new: "session_new"; session_compact: "session_compact"; model_set: "model_set"; thinking_set: "thinking_set"; }>; error: z.ZodString; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>; export declare const modelsListFrameSchema: z.ZodObject<{ type: z.ZodLiteral<"models_list">; in_reply_to: z.ZodString; models: z.ZodArray>; current: z.ZodOptional>; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>; export declare const queuedMessageStateFrameSchema: z.ZodObject<{ type: z.ZodLiteral<"queued_message_state">; snapshot_id: z.ZodString; chunk_index: z.ZodNumber; final: z.ZodBoolean; items: z.ZodArray>>; sender_ref: z.ZodOptional; editable: z.ZodBoolean; created_at: z.ZodNumber; }, z.core.$strict>>; session_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>; export declare const extensionUiRequestFrameSchema: z.ZodUnion; 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>>>; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"extension_ui_request">; }, z.core.$strict>, z.ZodObject<{ 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>>>; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"extension_ui_request">; }, z.core.$strict>, z.ZodObject<{ 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>>>; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"extension_ui_request">; }, z.core.$strict>, z.ZodObject<{ 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>>>; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"extension_ui_request">; }, z.core.$strict>, z.ZodObject<{ id: z.ZodString; method: z.ZodLiteral<"notify">; message: z.ZodString; notify_type: z.ZodOptional>; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"extension_ui_request">; }, z.core.$strict>]>; export declare const byeFrameSchema: z.ZodObject<{ type: z.ZodLiteral<"bye">; reason: z.ZodEnum<{ peer_stop: "peer_stop"; session_replaced: "session_replaced"; shutdown: "shutdown"; }>; session_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>; export declare const clientFrameSchema: z.ZodUnion; id: z.ZodString; code: z.ZodString; device_name: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"session_hello">; id: z.ZodString; channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>, z.ZodObject<{ client_request_id: z.ZodString; text: z.ZodString; images: z.ZodOptional>>; streaming_behavior: z.ZodOptional>; channel_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"user_message">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ client_request_id: z.ZodString; message_id: z.ZodString; status: z.ZodLiteral<"committed">; channel_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"user_message_observed">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ before: z.ZodNullable; limit: z.ZodDefault; channel_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"session_sync">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"ping">; id: z.ZodString; channel_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>, z.ZodObject<{ channel_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"cancel">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ channel_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"session_new">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ channel_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"session_compact">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ provider: z.ZodString; model_id: z.ZodString; channel_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"model_set">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ level: z.ZodEnum<{ off: "off"; minimal: "minimal"; low: "low"; medium: "medium"; high: "high"; xhigh: "xhigh"; }>; channel_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"thinking_set">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ channel_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"list_models">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ text: z.ZodString; images: z.ZodOptional>>; channel_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"queued_message_set">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ target_id: z.ZodOptional; channel_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"queued_message_clear">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ target_id: z.ZodString; channel_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"queued_message_steer">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ tool_call_id: z.ZodString; decision: z.ZodEnum<{ allow: "allow"; deny: "deny"; }>; channel_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"approve_tool">; id: z.ZodString; }, z.core.$strict>, 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>]>>>; channel_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"extension_ui_response">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ 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>]>>>; channel_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"extension_ui_response">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ 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>]>>>; channel_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"extension_ui_response">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ 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>]>; channel_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"extension_ui_response">; id: z.ZodString; }, z.core.$strict>]>]>; export declare const serverFrameSchema: z.ZodUnion; in_reply_to: z.ZodString; session_name: z.ZodString; session_started_at: z.ZodNumber; endpoint_id: z.ZodString; harness: z.ZodOptional>; hostname: z.ZodOptional; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"pair_error">; in_reply_to: z.ZodString; code: z.ZodEnum<{ token_expired: "token_expired"; token_consumed: "token_consumed"; token_unknown: "token_unknown"; internal_error: "internal_error"; }>; message: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"session_ready">; in_reply_to: z.ZodString; session_id: z.ZodString; history_generation: z.ZodString; head_seq: z.ZodNumber; self_sender_ref: z.ZodString; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"user_message_started">; in_reply_to: z.ZodString; session_id: z.ZodString; history_generation: z.ZodString; message: z.ZodObject<{ id: z.ZodString; group_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"; }>; }, z.core.$strict>; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>, z.ZodUnion; in_reply_to: z.ZodString; session_id: z.ZodString; history_generation: z.ZodString; client_request_id: z.ZodString; status: z.ZodLiteral<"received">; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"user_message_status">; in_reply_to: z.ZodString; session_id: z.ZodString; history_generation: z.ZodString; client_request_id: z.ZodString; status: z.ZodLiteral<"accepted">; message_id: z.ZodOptional; group_id: z.ZodOptional; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"user_message_status">; in_reply_to: z.ZodString; session_id: z.ZodString; history_generation: z.ZodString; client_request_id: z.ZodString; status: z.ZodLiteral<"committed">; message_id: z.ZodString; group_id: z.ZodOptional; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"user_message_status">; in_reply_to: z.ZodString; session_id: z.ZodString; history_generation: z.ZodString; client_request_id: z.ZodString; status: z.ZodLiteral<"unknown_delivery">; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>]>, z.ZodObject<{ type: z.ZodLiteral<"timeline_event">; event: z.ZodType<{ kind: "user"; message_id: string; blocks: ({ type: "text"; text: string; truncated?: true | undefined; } | { type: "image"; mime_type: string; data: string; byte_length: number; } | { type: "image"; mime_type: string; byte_length: number; omitted: true; })[]; origin: "unknown" | "pwa" | "extension"; delivery: "unknown" | "normal" | "queued"; status: "committed"; group_id: string; event_id: string; session_id: string; history_generation: string; timestamp: number; sender_ref?: string | undefined; event_seq?: number | undefined; } | { kind: "assistant"; blocks: ({ type: "text"; text: string; truncated?: true | undefined; } | { type: "thinking"; text: string; truncated?: true | undefined; })[]; status: "complete" | "interrupted"; group_id: string; event_id: string; session_id: string; history_generation: string; timestamp: number; event_seq?: number | undefined; } | { kind: "tool"; tool_call_id: string; tool: string; args: import("./schema.js").JsonValue; truncated: boolean; status: "complete"; result: import("./schema.js").JsonValue; group_id: string; event_id: string; session_id: string; history_generation: string; timestamp: number; error?: undefined; event_seq?: number | undefined; } | { kind: "tool"; tool_call_id: string; tool: string; args: import("./schema.js").JsonValue; truncated: boolean; status: "error"; error: string; group_id: string; event_id: string; session_id: string; history_generation: string; timestamp: number; result?: import("./schema.js").JsonValue | undefined; event_seq?: number | undefined; } | { kind: "tool"; tool_call_id: string; tool: string; args: import("./schema.js").JsonValue; truncated: boolean; status: "interrupted"; group_id: string; event_id: string; session_id: string; history_generation: string; timestamp: number; result?: undefined; error?: undefined; event_seq?: number | undefined; } | { kind: "custom" | "compaction" | "branch_summary"; payload: import("./schema.js").JsonValue; truncated: boolean; event_id: string; session_id: string; history_generation: string; timestamp: number; group_id?: string | undefined; event_seq?: number | undefined; } | { kind: "provider_error"; message: string; group_id: string; event_id: string; session_id: string; history_generation: string; timestamp: number; event_seq?: number | undefined; }, unknown, z.core.$ZodTypeInternals<{ kind: "user"; message_id: string; blocks: ({ type: "text"; text: string; truncated?: true | undefined; } | { type: "image"; mime_type: string; data: string; byte_length: number; } | { type: "image"; mime_type: string; byte_length: number; omitted: true; })[]; origin: "unknown" | "pwa" | "extension"; delivery: "unknown" | "normal" | "queued"; status: "committed"; group_id: string; event_id: string; session_id: string; history_generation: string; timestamp: number; sender_ref?: string | undefined; event_seq?: number | undefined; } | { kind: "assistant"; blocks: ({ type: "text"; text: string; truncated?: true | undefined; } | { type: "thinking"; text: string; truncated?: true | undefined; })[]; status: "complete" | "interrupted"; group_id: string; event_id: string; session_id: string; history_generation: string; timestamp: number; event_seq?: number | undefined; } | { kind: "tool"; tool_call_id: string; tool: string; args: import("./schema.js").JsonValue; truncated: boolean; status: "complete"; result: import("./schema.js").JsonValue; group_id: string; event_id: string; session_id: string; history_generation: string; timestamp: number; error?: undefined; event_seq?: number | undefined; } | { kind: "tool"; tool_call_id: string; tool: string; args: import("./schema.js").JsonValue; truncated: boolean; status: "error"; error: string; group_id: string; event_id: string; session_id: string; history_generation: string; timestamp: number; result?: import("./schema.js").JsonValue | undefined; event_seq?: number | undefined; } | { kind: "tool"; tool_call_id: string; tool: string; args: import("./schema.js").JsonValue; truncated: boolean; status: "interrupted"; group_id: string; event_id: string; session_id: string; history_generation: string; timestamp: number; result?: undefined; error?: undefined; event_seq?: number | undefined; } | { kind: "custom" | "compaction" | "branch_summary"; payload: import("./schema.js").JsonValue; truncated: boolean; event_id: string; session_id: string; history_generation: string; timestamp: number; group_id?: string | undefined; event_seq?: number | undefined; } | { kind: "provider_error"; message: string; group_id: string; event_id: string; session_id: string; history_generation: string; timestamp: number; event_seq?: number | undefined; }, unknown>>; session_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>, 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>]>, z.ZodObject<{ type: z.ZodLiteral<"timeline_event_fragment">; event_id: z.ZodString; index: z.ZodNumber; data_base64: z.ZodString; final: z.ZodBoolean; session_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>, z.ZodUnion; next_before: z.ZodOptional; eos: z.ZodOptional; type: z.ZodLiteral<"session_history_chunk">; in_reply_to: z.ZodString; session_id: z.ZodString; history_generation: z.ZodString; snapshot_head: z.ZodString; chunk_index: z.ZodNumber; events: z.ZodArray>>; fragments: z.ZodArray>; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>, z.ZodObject<{ final_chunk: z.ZodLiteral; eos: z.ZodLiteral; next_before: z.ZodOptional; type: z.ZodLiteral<"session_history_chunk">; in_reply_to: z.ZodString; session_id: z.ZodString; history_generation: z.ZodString; snapshot_head: z.ZodString; chunk_index: z.ZodNumber; events: z.ZodArray>>; fragments: z.ZodArray>; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>, z.ZodObject<{ final_chunk: z.ZodLiteral; eos: z.ZodLiteral; next_before: z.ZodNumber; type: z.ZodLiteral<"session_history_chunk">; in_reply_to: z.ZodString; session_id: z.ZodString; history_generation: z.ZodString; snapshot_head: z.ZodString; chunk_index: z.ZodNumber; events: z.ZodArray>>; fragments: z.ZodArray>; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>]>, z.ZodUnion; in_reply_to: z.ZodOptional; code: z.ZodEnum<{ internal_error: "internal_error"; protocol_upgrade_required: "protocol_upgrade_required"; invalid_message: "invalid_message"; unsupported_type: "unsupported_type"; invalid_channel: "invalid_channel"; invalid_generation: "invalid_generation"; invalid_cursor: "invalid_cursor"; reset_required: "reset_required"; too_large: "too_large"; }>; message: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"protocol_error">; in_reply_to: z.ZodOptional; code: z.ZodEnum<{ internal_error: "internal_error"; protocol_upgrade_required: "protocol_upgrade_required"; invalid_message: "invalid_message"; unsupported_type: "unsupported_type"; invalid_channel: "invalid_channel"; invalid_generation: "invalid_generation"; invalid_cursor: "invalid_cursor"; reset_required: "reset_required"; too_large: "too_large"; }>; message: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>]>, z.ZodObject<{ type: z.ZodLiteral<"reset">; session_id: z.ZodString; history_generation: z.ZodString; reason: z.ZodEnum<{ session_replaced: "session_replaced"; invalid_cursor: "invalid_cursor"; generation_changed: "generation_changed"; branch_changed: "branch_changed"; conflict: "conflict"; }>; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"pong">; in_reply_to: z.ZodString; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"cancelled">; in_reply_to: z.ZodString; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"action_ok">; in_reply_to: z.ZodString; action: z.ZodEnum<{ session_new: "session_new"; session_compact: "session_compact"; model_set: "model_set"; thinking_set: "thinking_set"; }>; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"action_error">; in_reply_to: z.ZodString; action: z.ZodEnum<{ session_new: "session_new"; session_compact: "session_compact"; model_set: "model_set"; thinking_set: "thinking_set"; }>; error: z.ZodString; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"models_list">; in_reply_to: z.ZodString; models: z.ZodArray>; current: z.ZodOptional>; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"queued_message_state">; snapshot_id: z.ZodString; chunk_index: z.ZodNumber; final: z.ZodBoolean; items: z.ZodArray>>; sender_ref: z.ZodOptional; editable: z.ZodBoolean; created_at: z.ZodNumber; }, z.core.$strict>>; session_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>, z.ZodUnion; 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>>>; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"extension_ui_request">; }, z.core.$strict>, z.ZodObject<{ 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>>>; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"extension_ui_request">; }, z.core.$strict>, z.ZodObject<{ 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>>>; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"extension_ui_request">; }, z.core.$strict>, z.ZodObject<{ 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>>>; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"extension_ui_request">; }, z.core.$strict>, z.ZodObject<{ id: z.ZodString; method: z.ZodLiteral<"notify">; message: z.ZodString; notify_type: z.ZodOptional>; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"extension_ui_request">; }, z.core.$strict>]>, z.ZodObject<{ type: z.ZodLiteral<"bye">; reason: z.ZodEnum<{ peer_stop: "peer_stop"; session_replaced: "session_replaced"; shutdown: "shutdown"; }>; session_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>]>; export declare const ClientFrameSchema: z.ZodUnion; id: z.ZodString; code: z.ZodString; device_name: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"session_hello">; id: z.ZodString; channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>, z.ZodObject<{ client_request_id: z.ZodString; text: z.ZodString; images: z.ZodOptional>>; streaming_behavior: z.ZodOptional>; channel_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"user_message">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ client_request_id: z.ZodString; message_id: z.ZodString; status: z.ZodLiteral<"committed">; channel_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"user_message_observed">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ before: z.ZodNullable; limit: z.ZodDefault; channel_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"session_sync">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"ping">; id: z.ZodString; channel_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>, z.ZodObject<{ channel_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"cancel">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ channel_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"session_new">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ channel_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"session_compact">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ provider: z.ZodString; model_id: z.ZodString; channel_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"model_set">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ level: z.ZodEnum<{ off: "off"; minimal: "minimal"; low: "low"; medium: "medium"; high: "high"; xhigh: "xhigh"; }>; channel_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"thinking_set">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ channel_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"list_models">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ text: z.ZodString; images: z.ZodOptional>>; channel_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"queued_message_set">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ target_id: z.ZodOptional; channel_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"queued_message_clear">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ target_id: z.ZodString; channel_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"queued_message_steer">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ tool_call_id: z.ZodString; decision: z.ZodEnum<{ allow: "allow"; deny: "deny"; }>; channel_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"approve_tool">; id: z.ZodString; }, z.core.$strict>, 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>]>>>; channel_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"extension_ui_response">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ 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>]>>>; channel_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"extension_ui_response">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ 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>]>>>; channel_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"extension_ui_response">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ 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>]>; channel_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"extension_ui_response">; id: z.ZodString; }, z.core.$strict>]>]>; export declare const ServerFrameSchema: z.ZodUnion; in_reply_to: z.ZodString; session_name: z.ZodString; session_started_at: z.ZodNumber; endpoint_id: z.ZodString; harness: z.ZodOptional>; hostname: z.ZodOptional; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"pair_error">; in_reply_to: z.ZodString; code: z.ZodEnum<{ token_expired: "token_expired"; token_consumed: "token_consumed"; token_unknown: "token_unknown"; internal_error: "internal_error"; }>; message: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"session_ready">; in_reply_to: z.ZodString; session_id: z.ZodString; history_generation: z.ZodString; head_seq: z.ZodNumber; self_sender_ref: z.ZodString; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"user_message_started">; in_reply_to: z.ZodString; session_id: z.ZodString; history_generation: z.ZodString; message: z.ZodObject<{ id: z.ZodString; group_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"; }>; }, z.core.$strict>; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>, z.ZodUnion; in_reply_to: z.ZodString; session_id: z.ZodString; history_generation: z.ZodString; client_request_id: z.ZodString; status: z.ZodLiteral<"received">; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"user_message_status">; in_reply_to: z.ZodString; session_id: z.ZodString; history_generation: z.ZodString; client_request_id: z.ZodString; status: z.ZodLiteral<"accepted">; message_id: z.ZodOptional; group_id: z.ZodOptional; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"user_message_status">; in_reply_to: z.ZodString; session_id: z.ZodString; history_generation: z.ZodString; client_request_id: z.ZodString; status: z.ZodLiteral<"committed">; message_id: z.ZodString; group_id: z.ZodOptional; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"user_message_status">; in_reply_to: z.ZodString; session_id: z.ZodString; history_generation: z.ZodString; client_request_id: z.ZodString; status: z.ZodLiteral<"unknown_delivery">; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>]>, z.ZodObject<{ type: z.ZodLiteral<"timeline_event">; event: z.ZodType<{ kind: "user"; message_id: string; blocks: ({ type: "text"; text: string; truncated?: true | undefined; } | { type: "image"; mime_type: string; data: string; byte_length: number; } | { type: "image"; mime_type: string; byte_length: number; omitted: true; })[]; origin: "unknown" | "pwa" | "extension"; delivery: "unknown" | "normal" | "queued"; status: "committed"; group_id: string; event_id: string; session_id: string; history_generation: string; timestamp: number; sender_ref?: string | undefined; event_seq?: number | undefined; } | { kind: "assistant"; blocks: ({ type: "text"; text: string; truncated?: true | undefined; } | { type: "thinking"; text: string; truncated?: true | undefined; })[]; status: "complete" | "interrupted"; group_id: string; event_id: string; session_id: string; history_generation: string; timestamp: number; event_seq?: number | undefined; } | { kind: "tool"; tool_call_id: string; tool: string; args: import("./schema.js").JsonValue; truncated: boolean; status: "complete"; result: import("./schema.js").JsonValue; group_id: string; event_id: string; session_id: string; history_generation: string; timestamp: number; error?: undefined; event_seq?: number | undefined; } | { kind: "tool"; tool_call_id: string; tool: string; args: import("./schema.js").JsonValue; truncated: boolean; status: "error"; error: string; group_id: string; event_id: string; session_id: string; history_generation: string; timestamp: number; result?: import("./schema.js").JsonValue | undefined; event_seq?: number | undefined; } | { kind: "tool"; tool_call_id: string; tool: string; args: import("./schema.js").JsonValue; truncated: boolean; status: "interrupted"; group_id: string; event_id: string; session_id: string; history_generation: string; timestamp: number; result?: undefined; error?: undefined; event_seq?: number | undefined; } | { kind: "custom" | "compaction" | "branch_summary"; payload: import("./schema.js").JsonValue; truncated: boolean; event_id: string; session_id: string; history_generation: string; timestamp: number; group_id?: string | undefined; event_seq?: number | undefined; } | { kind: "provider_error"; message: string; group_id: string; event_id: string; session_id: string; history_generation: string; timestamp: number; event_seq?: number | undefined; }, unknown, z.core.$ZodTypeInternals<{ kind: "user"; message_id: string; blocks: ({ type: "text"; text: string; truncated?: true | undefined; } | { type: "image"; mime_type: string; data: string; byte_length: number; } | { type: "image"; mime_type: string; byte_length: number; omitted: true; })[]; origin: "unknown" | "pwa" | "extension"; delivery: "unknown" | "normal" | "queued"; status: "committed"; group_id: string; event_id: string; session_id: string; history_generation: string; timestamp: number; sender_ref?: string | undefined; event_seq?: number | undefined; } | { kind: "assistant"; blocks: ({ type: "text"; text: string; truncated?: true | undefined; } | { type: "thinking"; text: string; truncated?: true | undefined; })[]; status: "complete" | "interrupted"; group_id: string; event_id: string; session_id: string; history_generation: string; timestamp: number; event_seq?: number | undefined; } | { kind: "tool"; tool_call_id: string; tool: string; args: import("./schema.js").JsonValue; truncated: boolean; status: "complete"; result: import("./schema.js").JsonValue; group_id: string; event_id: string; session_id: string; history_generation: string; timestamp: number; error?: undefined; event_seq?: number | undefined; } | { kind: "tool"; tool_call_id: string; tool: string; args: import("./schema.js").JsonValue; truncated: boolean; status: "error"; error: string; group_id: string; event_id: string; session_id: string; history_generation: string; timestamp: number; result?: import("./schema.js").JsonValue | undefined; event_seq?: number | undefined; } | { kind: "tool"; tool_call_id: string; tool: string; args: import("./schema.js").JsonValue; truncated: boolean; status: "interrupted"; group_id: string; event_id: string; session_id: string; history_generation: string; timestamp: number; result?: undefined; error?: undefined; event_seq?: number | undefined; } | { kind: "custom" | "compaction" | "branch_summary"; payload: import("./schema.js").JsonValue; truncated: boolean; event_id: string; session_id: string; history_generation: string; timestamp: number; group_id?: string | undefined; event_seq?: number | undefined; } | { kind: "provider_error"; message: string; group_id: string; event_id: string; session_id: string; history_generation: string; timestamp: number; event_seq?: number | undefined; }, unknown>>; session_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>, 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>]>, z.ZodObject<{ type: z.ZodLiteral<"timeline_event_fragment">; event_id: z.ZodString; index: z.ZodNumber; data_base64: z.ZodString; final: z.ZodBoolean; session_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>, z.ZodUnion; next_before: z.ZodOptional; eos: z.ZodOptional; type: z.ZodLiteral<"session_history_chunk">; in_reply_to: z.ZodString; session_id: z.ZodString; history_generation: z.ZodString; snapshot_head: z.ZodString; chunk_index: z.ZodNumber; events: z.ZodArray>>; fragments: z.ZodArray>; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>, z.ZodObject<{ final_chunk: z.ZodLiteral; eos: z.ZodLiteral; next_before: z.ZodOptional; type: z.ZodLiteral<"session_history_chunk">; in_reply_to: z.ZodString; session_id: z.ZodString; history_generation: z.ZodString; snapshot_head: z.ZodString; chunk_index: z.ZodNumber; events: z.ZodArray>>; fragments: z.ZodArray>; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>, z.ZodObject<{ final_chunk: z.ZodLiteral; eos: z.ZodLiteral; next_before: z.ZodNumber; type: z.ZodLiteral<"session_history_chunk">; in_reply_to: z.ZodString; session_id: z.ZodString; history_generation: z.ZodString; snapshot_head: z.ZodString; chunk_index: z.ZodNumber; events: z.ZodArray>>; fragments: z.ZodArray>; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>]>, z.ZodUnion; in_reply_to: z.ZodOptional; code: z.ZodEnum<{ internal_error: "internal_error"; protocol_upgrade_required: "protocol_upgrade_required"; invalid_message: "invalid_message"; unsupported_type: "unsupported_type"; invalid_channel: "invalid_channel"; invalid_generation: "invalid_generation"; invalid_cursor: "invalid_cursor"; reset_required: "reset_required"; too_large: "too_large"; }>; message: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"protocol_error">; in_reply_to: z.ZodOptional; code: z.ZodEnum<{ internal_error: "internal_error"; protocol_upgrade_required: "protocol_upgrade_required"; invalid_message: "invalid_message"; unsupported_type: "unsupported_type"; invalid_channel: "invalid_channel"; invalid_generation: "invalid_generation"; invalid_cursor: "invalid_cursor"; reset_required: "reset_required"; too_large: "too_large"; }>; message: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>]>, z.ZodObject<{ type: z.ZodLiteral<"reset">; session_id: z.ZodString; history_generation: z.ZodString; reason: z.ZodEnum<{ session_replaced: "session_replaced"; invalid_cursor: "invalid_cursor"; generation_changed: "generation_changed"; branch_changed: "branch_changed"; conflict: "conflict"; }>; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"pong">; in_reply_to: z.ZodString; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"cancelled">; in_reply_to: z.ZodString; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"action_ok">; in_reply_to: z.ZodString; action: z.ZodEnum<{ session_new: "session_new"; session_compact: "session_compact"; model_set: "model_set"; thinking_set: "thinking_set"; }>; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"action_error">; in_reply_to: z.ZodString; action: z.ZodEnum<{ session_new: "session_new"; session_compact: "session_compact"; model_set: "model_set"; thinking_set: "thinking_set"; }>; error: z.ZodString; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"models_list">; in_reply_to: z.ZodString; models: z.ZodArray>; current: z.ZodOptional>; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"queued_message_state">; snapshot_id: z.ZodString; chunk_index: z.ZodNumber; final: z.ZodBoolean; items: z.ZodArray>>; sender_ref: z.ZodOptional; editable: z.ZodBoolean; created_at: z.ZodNumber; }, z.core.$strict>>; session_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>, z.ZodUnion; 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>>>; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"extension_ui_request">; }, z.core.$strict>, z.ZodObject<{ 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>>>; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"extension_ui_request">; }, z.core.$strict>, z.ZodObject<{ 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>>>; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"extension_ui_request">; }, z.core.$strict>, z.ZodObject<{ 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>>>; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"extension_ui_request">; }, z.core.$strict>, z.ZodObject<{ id: z.ZodString; method: z.ZodLiteral<"notify">; message: z.ZodString; notify_type: z.ZodOptional>; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; type: z.ZodLiteral<"extension_ui_request">; }, z.core.$strict>]>, z.ZodObject<{ type: z.ZodLiteral<"bye">; reason: z.ZodEnum<{ peer_stop: "peer_stop"; session_replaced: "session_replaced"; shutdown: "shutdown"; }>; session_id: z.ZodString; history_generation: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>]>; export declare const SessionHistoryChunkSchema: z.ZodUnion; next_before: z.ZodOptional; eos: z.ZodOptional; type: z.ZodLiteral<"session_history_chunk">; in_reply_to: z.ZodString; session_id: z.ZodString; history_generation: z.ZodString; snapshot_head: z.ZodString; chunk_index: z.ZodNumber; events: z.ZodArray>>; fragments: z.ZodArray>; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>, z.ZodObject<{ final_chunk: z.ZodLiteral; eos: z.ZodLiteral; next_before: z.ZodOptional; type: z.ZodLiteral<"session_history_chunk">; in_reply_to: z.ZodString; session_id: z.ZodString; history_generation: z.ZodString; snapshot_head: z.ZodString; chunk_index: z.ZodNumber; events: z.ZodArray>>; fragments: z.ZodArray>; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>, z.ZodObject<{ final_chunk: z.ZodLiteral; eos: z.ZodLiteral; next_before: z.ZodNumber; type: z.ZodLiteral<"session_history_chunk">; in_reply_to: z.ZodString; session_id: z.ZodString; history_generation: z.ZodString; snapshot_head: z.ZodString; chunk_index: z.ZodNumber; events: z.ZodArray>>; fragments: z.ZodArray>; target_channel_id: z.ZodString; protocol_version: z.ZodLiteral<2>; }, z.core.$strict>]>; export type ClientFrame = z.input; export type ServerFrame = z.infer; export type DirectClientFrame = Exclude; export type OwnerBroadcastServerFrame = Extract; export declare const clientFrameTypes: Set; export declare const serverFrameTypes: Set; export declare const ClientFrameTypes: Set; export declare const ServerFrameTypes: Set; export type { TimelineEvent, TimelinePartial };