import { z } from 'zod'; export { BackgroundAgentCancelledPayloadSchema } from './background-agent-schema.js'; export declare const ToolCallStartedPayloadSchema: z.ZodObject<{ phase: z.ZodLiteral<"started">; toolUseId: z.ZodString; name: z.ZodString; inputBytes: z.ZodNumber; argsFingerprint: z.ZodOptional; resourceFingerprint: z.ZodOptional; subagentId: z.ZodOptional; }, z.core.$strip>; export declare const ToolFailureClassSchema: z.ZodEnum<{ budget: "budget"; abort: "abort"; "policy-refusal": "policy-refusal"; timeout: "timeout"; "permission-denied": "permission-denied"; "hook-block": "hook-block"; "elicitation-declined": "elicitation-declined"; "denial-breaker": "denial-breaker"; "repeat-failure": "repeat-failure"; "no-such-target": "no-such-target"; }>; export declare const ToolCallCompletedPayloadSchema: z.ZodObject<{ phase: z.ZodLiteral<"completed">; toolUseId: z.ZodString; name: z.ZodString; resultBytes: z.ZodNumber; isError: z.ZodBoolean; truncated: z.ZodBoolean; durationMs: z.ZodNumber; incomplete: z.ZodOptional; incompleteReason: z.ZodOptional; circuitBreaker: z.ZodOptional; failureClass: z.ZodOptional>; batchIndex: z.ZodOptional; batchSize: z.ZodOptional; subagentId: z.ZodOptional; }, z.core.$strip>; export declare const ToolCallPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ phase: z.ZodLiteral<"started">; toolUseId: z.ZodString; name: z.ZodString; inputBytes: z.ZodNumber; argsFingerprint: z.ZodOptional; resourceFingerprint: z.ZodOptional; subagentId: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ phase: z.ZodLiteral<"completed">; toolUseId: z.ZodString; name: z.ZodString; resultBytes: z.ZodNumber; isError: z.ZodBoolean; truncated: z.ZodBoolean; durationMs: z.ZodNumber; incomplete: z.ZodOptional; incompleteReason: z.ZodOptional; circuitBreaker: z.ZodOptional; failureClass: z.ZodOptional>; batchIndex: z.ZodOptional; batchSize: z.ZodOptional; subagentId: z.ZodOptional; }, z.core.$strip>], "phase">; export declare const HookEventNameSchema: z.ZodEnum<{ PreToolUse: "PreToolUse"; PostToolUse: "PostToolUse"; PostToolUseFailure: "PostToolUseFailure"; SessionStart: "SessionStart"; SessionEnd: "SessionEnd"; SubagentStart: "SubagentStart"; SubagentStop: "SubagentStop"; }>; export declare const HookDecisionPayloadSchema: z.ZodObject<{ hookEvent: z.ZodEnum<{ PreToolUse: "PreToolUse"; PostToolUse: "PostToolUse"; PostToolUseFailure: "PostToolUseFailure"; SessionStart: "SessionStart"; SessionEnd: "SessionEnd"; SubagentStart: "SubagentStart"; SubagentStop: "SubagentStop"; }>; decision: z.ZodOptional, z.ZodLiteral<"approve">]>>; reason: z.ZodOptional; blockedTool: z.ZodOptional; subagentId: z.ZodOptional; injectedContextBytes: z.ZodOptional; durationMs: z.ZodOptional; approvalOutcome: z.ZodOptional>; }, z.core.$strip>; export declare const SubagentStartedPayloadSchema: z.ZodObject<{ transition: z.ZodLiteral<"started">; subagentId: z.ZodString; parentId: z.ZodString; model: z.ZodString; allowedTools: z.ZodOptional>>; systemPromptHash: z.ZodOptional; promptHead: z.ZodOptional; agentType: z.ZodOptional; resolvedAgentType: z.ZodOptional; }, z.core.$strip>; export declare const SubagentSucceededPayloadSchema: z.ZodObject<{ transition: z.ZodLiteral<"succeeded">; subagentId: z.ZodString; durationMs: z.ZodNumber; turnCount: z.ZodNumber; totalCostUsd: z.ZodOptional; outputBytes: z.ZodNumber; stopReason: z.ZodOptional; }, z.core.$strip>; export declare const SubagentFailedPayloadSchema: z.ZodObject<{ transition: z.ZodLiteral<"failed">; subagentId: z.ZodString; errorClass: z.ZodString; errorMessage: z.ZodString; partialOutputBytes: z.ZodNumber; failureClass: z.ZodOptional>; }, z.core.$strip>; export declare const SubagentCancelledPayloadSchema: z.ZodObject<{ transition: z.ZodLiteral<"cancelled">; subagentId: z.ZodString; source: z.ZodEnum<{ explicit: "explicit"; cascade: "cascade"; }>; timeout: z.ZodOptional; }, z.core.$strip>; export declare const SubagentLifecyclePayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ transition: z.ZodLiteral<"started">; subagentId: z.ZodString; parentId: z.ZodString; model: z.ZodString; allowedTools: z.ZodOptional>>; systemPromptHash: z.ZodOptional; promptHead: z.ZodOptional; agentType: z.ZodOptional; resolvedAgentType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ transition: z.ZodLiteral<"succeeded">; subagentId: z.ZodString; durationMs: z.ZodNumber; turnCount: z.ZodNumber; totalCostUsd: z.ZodOptional; outputBytes: z.ZodNumber; stopReason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ transition: z.ZodLiteral<"failed">; subagentId: z.ZodString; errorClass: z.ZodString; errorMessage: z.ZodString; partialOutputBytes: z.ZodNumber; failureClass: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ transition: z.ZodLiteral<"cancelled">; subagentId: z.ZodString; source: z.ZodEnum<{ explicit: "explicit"; cascade: "cascade"; }>; timeout: z.ZodOptional; }, z.core.$strip>], "transition">; export declare const BackgroundAgentStartedPayloadSchema: z.ZodObject<{ transition: z.ZodLiteral<"started">; jobId: z.ZodString; subagentId: z.ZodString; label: z.ZodString; model: z.ZodString; }, z.core.$strip>; export declare const BackgroundAgentCompletedPayloadSchema: z.ZodObject<{ transition: z.ZodLiteral<"completed">; jobId: z.ZodString; subagentId: z.ZodString; durationMs: z.ZodNumber; outputBytes: z.ZodNumber; }, z.core.$strip>; export declare const BackgroundAgentFailedPayloadSchema: z.ZodObject<{ transition: z.ZodLiteral<"failed">; jobId: z.ZodString; subagentId: z.ZodString; durationMs: z.ZodNumber; errorClass: z.ZodString; errorMessage: z.ZodString; }, z.core.$strip>; export declare const BackgroundAgentJoinedPayloadSchema: z.ZodObject<{ transition: z.ZodLiteral<"joined">; jobId: z.ZodString; subagentId: z.ZodString; jobStatus: z.ZodEnum<{ failed: "failed"; completed: "completed"; cancelled: "cancelled"; }>; }, z.core.$strip>; export declare const BackgroundAgentDeliveredPayloadSchema: z.ZodObject<{ transition: z.ZodLiteral<"delivered">; jobId: z.ZodString; subagentId: z.ZodString; jobStatus: z.ZodEnum<{ failed: "failed"; completed: "completed"; cancelled: "cancelled"; }>; }, z.core.$strip>; export declare const BackgroundAgentPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ transition: z.ZodLiteral<"started">; jobId: z.ZodString; subagentId: z.ZodString; label: z.ZodString; model: z.ZodString; }, z.core.$strip>, z.ZodObject<{ transition: z.ZodLiteral<"completed">; jobId: z.ZodString; subagentId: z.ZodString; durationMs: z.ZodNumber; outputBytes: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ transition: z.ZodLiteral<"failed">; jobId: z.ZodString; subagentId: z.ZodString; durationMs: z.ZodNumber; errorClass: z.ZodString; errorMessage: z.ZodString; }, z.core.$strip>, z.ZodObject<{ transition: z.ZodLiteral<"cancelled">; jobId: z.ZodString; subagentId: z.ZodString; source: z.ZodEnum<{ explicit: "explicit"; cascade: "cascade"; }>; cancelledBy: z.ZodOptional>; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ transition: z.ZodLiteral<"joined">; jobId: z.ZodString; subagentId: z.ZodString; jobStatus: z.ZodEnum<{ failed: "failed"; completed: "completed"; cancelled: "cancelled"; }>; }, z.core.$strip>, z.ZodObject<{ transition: z.ZodLiteral<"delivered">; jobId: z.ZodString; subagentId: z.ZodString; jobStatus: z.ZodEnum<{ failed: "failed"; completed: "completed"; cancelled: "cancelled"; }>; }, z.core.$strip>], "transition">; export declare const BudgetPayloadSchema: z.ZodObject<{ kind: z.ZodLiteral<"monetary">; runningCostUsd: z.ZodNumber; maxBudgetUsd: z.ZodNumber; lastTurnCostUsd: z.ZodNumber; }, z.core.$strip>; export declare const AbortOriginSchema: z.ZodEnum<{ cascade: "cascade"; budget: "budget"; timeout: "timeout"; user_signal: "user_signal"; hook_block: "hook_block"; }>; export declare const AbortPayloadSchema: z.ZodObject<{ origin: z.ZodEnum<{ cascade: "cascade"; budget: "budget"; timeout: "timeout"; user_signal: "user_signal"; hook_block: "hook_block"; }>; cascadedTo: z.ZodReadonly>; reason: z.ZodOptional; }, z.core.$strip>; export declare const CompactionTriggerSchema: z.ZodEnum<{ manual: "manual"; token_threshold: "token_threshold"; turn_count: "turn_count"; }>; export declare const CompactionSidecarRefSchema: z.ZodObject<{ path: z.ZodString; sizeBytes: z.ZodNumber; sha256: z.ZodString; }, z.core.$strip>; export declare const CompactionPayloadInputSchema: z.ZodObject<{ trigger: z.ZodEnum<{ manual: "manual"; token_threshold: "token_threshold"; turn_count: "turn_count"; }>; preCompactionMessages: z.ZodArray; summary: z.ZodString; keptTailCount: z.ZodNumber; keepLastNConfig: z.ZodNumber; messagesBefore: z.ZodNumber; messagesAfter: z.ZodNumber; tokensSavedEstimate: z.ZodOptional; summarizationTokens: z.ZodOptional>; }, z.core.$strip>; export declare const CompactionPayloadPersistedSchema: z.ZodObject<{ trigger: z.ZodEnum<{ manual: "manual"; token_threshold: "token_threshold"; turn_count: "turn_count"; }>; preCompactionMessagesRef: z.ZodObject<{ path: z.ZodString; sizeBytes: z.ZodNumber; sha256: z.ZodString; }, z.core.$strip>; summary: z.ZodString; keptTailCount: z.ZodNumber; keepLastNConfig: z.ZodNumber; messagesBefore: z.ZodNumber; messagesAfter: z.ZodNumber; tokensSavedEstimate: z.ZodOptional; summarizationTokens: z.ZodOptional>; }, z.core.$strip>; export declare const ClosureReasonSchema: z.ZodEnum<{ abort: "abort"; timeout: "timeout"; model_end_turn: "model_end_turn"; truncated: "truncated"; iteration_cap: "iteration_cap"; budget_exceeded: "budget_exceeded"; hook_blocked: "hook_blocked"; max_turns_exceeded: "max_turns_exceeded"; }>; export declare const ClosurePayloadSchema: z.ZodObject<{ reason: z.ZodEnum<{ abort: "abort"; timeout: "timeout"; model_end_turn: "model_end_turn"; truncated: "truncated"; iteration_cap: "iteration_cap"; budget_exceeded: "budget_exceeded"; hook_blocked: "hook_blocked"; max_turns_exceeded: "max_turns_exceeded"; }>; finalTurnCount: z.ZodNumber; finalCostUsd: z.ZodNumber; finalTokens: z.ZodObject<{ input: z.ZodOptional; output: z.ZodOptional; cacheRead: z.ZodOptional; cacheCreation: z.ZodOptional; }, z.core.$strip>; lastStopReason: z.ZodOptional; guidance: z.ZodOptional; }, z.core.$strip>; export declare const ClaimPayloadSchema: z.ZodObject<{ source: z.ZodString; assertion: z.ZodString; evidence: z.ZodReadonly>; confidence: z.ZodNumber; dissent: z.ZodOptional; }, z.core.$strip>; export declare const BrowserEventToolSchema: z.ZodEnum<{ browser_open: "browser_open"; browser_observe: "browser_observe"; browser_act: "browser_act"; browser_screenshot: "browser_screenshot"; browser_extract: "browser_extract"; browser_close: "browser_close"; }>; export declare const BrowserActActionSchema: z.ZodEnum<{ fill: "fill"; click: "click"; press: "press"; select: "select"; hover: "hover"; scroll_to: "scroll_to"; wait_for: "wait_for"; }>; export declare const BrowserEventTargetSchema: z.ZodObject<{ kind: z.ZodEnum<{ semantic: "semantic"; element_id: "element_id"; selector: "selector"; }>; text: z.ZodOptional; role: z.ZodOptional; elementId: z.ZodOptional; selectorHash: z.ZodOptional; }, z.core.$strip>; export declare const QueuedUserMessagePayloadSchema: z.ZodObject<{ jobId: z.ZodString; subagentId: z.ZodString; byteLength: z.ZodNumber; }, z.core.$strip>; export declare const BrowserEventPayloadSchema: z.ZodObject<{ tool: z.ZodEnum<{ browser_open: "browser_open"; browser_observe: "browser_observe"; browser_act: "browser_act"; browser_screenshot: "browser_screenshot"; browser_extract: "browser_extract"; browser_close: "browser_close"; }>; action: z.ZodOptional>; toolUseId: z.ZodString; backend: z.ZodOptional>; backendReason: z.ZodOptional; target: z.ZodOptional; text: z.ZodOptional; role: z.ZodOptional; elementId: z.ZodOptional; selectorHash: z.ZodOptional; }, z.core.$strip>>; urlBefore: z.ZodNullable; urlAfter: z.ZodNullable; status: z.ZodEnum<{ ok: "ok"; error: "error"; ambiguous_target: "ambiguous_target"; blocked_by_policy: "blocked_by_policy"; }>; screenshotPath: z.ZodOptional; observationSummary: z.ZodOptional; error: z.ZodOptional>; durationMs: z.ZodNumber; }, z.core.$strip>; export declare const SessionPhaseNameSchema: z.ZodEnum<{ bootstrap_start: "bootstrap_start"; bootstrap_done: "bootstrap_done"; session_init_start: "session_init_start"; session_init_done: "session_init_done"; mcp_connect_start: "mcp_connect_start"; mcp_connect_done: "mcp_connect_done"; mcp_server_start: "mcp_server_start"; mcp_server_done: "mcp_server_done"; loop_start: "loop_start"; loop_end: "loop_end"; model_ttfb: "model_ttfb"; interrupt_halt: "interrupt_halt"; rate_limit: "rate_limit"; ttfb_timeout: "ttfb_timeout"; usage_limit_pause: "usage_limit_pause"; usage_limit_resume: "usage_limit_resume"; overload_pause: "overload_pause"; overload_resume: "overload_resume"; idle_watchdog_fired: "idle_watchdog_fired"; pause_extension_granted: "pause_extension_granted"; suspected_loop: "suspected_loop"; compaction_disabled: "compaction_disabled"; boot_warning: "boot_warning"; workspace_subscribed: "workspace_subscribed"; workspace_delivery: "workspace_delivery"; gate_shape: "gate_shape"; }>; export declare const SessionPhasePayloadSchema: z.ZodObject<{ phase: z.ZodEnum<{ bootstrap_start: "bootstrap_start"; bootstrap_done: "bootstrap_done"; session_init_start: "session_init_start"; session_init_done: "session_init_done"; mcp_connect_start: "mcp_connect_start"; mcp_connect_done: "mcp_connect_done"; mcp_server_start: "mcp_server_start"; mcp_server_done: "mcp_server_done"; loop_start: "loop_start"; loop_end: "loop_end"; model_ttfb: "model_ttfb"; interrupt_halt: "interrupt_halt"; rate_limit: "rate_limit"; ttfb_timeout: "ttfb_timeout"; usage_limit_pause: "usage_limit_pause"; usage_limit_resume: "usage_limit_resume"; overload_pause: "overload_pause"; overload_resume: "overload_resume"; idle_watchdog_fired: "idle_watchdog_fired"; pause_extension_granted: "pause_extension_granted"; suspected_loop: "suspected_loop"; compaction_disabled: "compaction_disabled"; boot_warning: "boot_warning"; workspace_subscribed: "workspace_subscribed"; workspace_delivery: "workspace_delivery"; gate_shape: "gate_shape"; }>; durationMs: z.ZodOptional; metadata: z.ZodOptional>>; model: z.ZodOptional; resolvedModel: z.ZodOptional; origin: z.ZodOptional>; actor: z.ZodOptional>; }, z.core.$strip>; export declare const SessionSealedPayloadSchema: z.ZodObject<{ status: z.ZodEnum<{ failed: "failed"; cancelled: "cancelled"; succeeded: "succeeded"; }>; finalCostUsd: z.ZodNumber; finalTurnCount: z.ZodNumber; closedAt: z.ZodString; incomplete: z.ZodOptional; subagentCount: z.ZodOptional; subagentTokens: z.ZodOptional; output: z.ZodOptional; cacheRead: z.ZodOptional; cacheCreation: z.ZodOptional; }, z.core.$strip>>; subagentCostUsd: z.ZodOptional; }, z.core.$strip>; export declare const TraceEventInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"tool_call">; payload: z.ZodDiscriminatedUnion<[z.ZodObject<{ phase: z.ZodLiteral<"started">; toolUseId: z.ZodString; name: z.ZodString; inputBytes: z.ZodNumber; argsFingerprint: z.ZodOptional; resourceFingerprint: z.ZodOptional; subagentId: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ phase: z.ZodLiteral<"completed">; toolUseId: z.ZodString; name: z.ZodString; resultBytes: z.ZodNumber; isError: z.ZodBoolean; truncated: z.ZodBoolean; durationMs: z.ZodNumber; incomplete: z.ZodOptional; incompleteReason: z.ZodOptional; circuitBreaker: z.ZodOptional; failureClass: z.ZodOptional>; batchIndex: z.ZodOptional; batchSize: z.ZodOptional; subagentId: z.ZodOptional; }, z.core.$strip>], "phase">; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"hook_decision">; payload: z.ZodObject<{ hookEvent: z.ZodEnum<{ PreToolUse: "PreToolUse"; PostToolUse: "PostToolUse"; PostToolUseFailure: "PostToolUseFailure"; SessionStart: "SessionStart"; SessionEnd: "SessionEnd"; SubagentStart: "SubagentStart"; SubagentStop: "SubagentStop"; }>; decision: z.ZodOptional, z.ZodLiteral<"approve">]>>; reason: z.ZodOptional; blockedTool: z.ZodOptional; subagentId: z.ZodOptional; injectedContextBytes: z.ZodOptional; durationMs: z.ZodOptional; approvalOutcome: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"subagent_lifecycle">; payload: z.ZodDiscriminatedUnion<[z.ZodObject<{ transition: z.ZodLiteral<"started">; subagentId: z.ZodString; parentId: z.ZodString; model: z.ZodString; allowedTools: z.ZodOptional>>; systemPromptHash: z.ZodOptional; promptHead: z.ZodOptional; agentType: z.ZodOptional; resolvedAgentType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ transition: z.ZodLiteral<"succeeded">; subagentId: z.ZodString; durationMs: z.ZodNumber; turnCount: z.ZodNumber; totalCostUsd: z.ZodOptional; outputBytes: z.ZodNumber; stopReason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ transition: z.ZodLiteral<"failed">; subagentId: z.ZodString; errorClass: z.ZodString; errorMessage: z.ZodString; partialOutputBytes: z.ZodNumber; failureClass: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ transition: z.ZodLiteral<"cancelled">; subagentId: z.ZodString; source: z.ZodEnum<{ explicit: "explicit"; cascade: "cascade"; }>; timeout: z.ZodOptional; }, z.core.$strip>], "transition">; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"background_agent">; payload: z.ZodDiscriminatedUnion<[z.ZodObject<{ transition: z.ZodLiteral<"started">; jobId: z.ZodString; subagentId: z.ZodString; label: z.ZodString; model: z.ZodString; }, z.core.$strip>, z.ZodObject<{ transition: z.ZodLiteral<"completed">; jobId: z.ZodString; subagentId: z.ZodString; durationMs: z.ZodNumber; outputBytes: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ transition: z.ZodLiteral<"failed">; jobId: z.ZodString; subagentId: z.ZodString; durationMs: z.ZodNumber; errorClass: z.ZodString; errorMessage: z.ZodString; }, z.core.$strip>, z.ZodObject<{ transition: z.ZodLiteral<"cancelled">; jobId: z.ZodString; subagentId: z.ZodString; source: z.ZodEnum<{ explicit: "explicit"; cascade: "cascade"; }>; cancelledBy: z.ZodOptional>; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ transition: z.ZodLiteral<"joined">; jobId: z.ZodString; subagentId: z.ZodString; jobStatus: z.ZodEnum<{ failed: "failed"; completed: "completed"; cancelled: "cancelled"; }>; }, z.core.$strip>, z.ZodObject<{ transition: z.ZodLiteral<"delivered">; jobId: z.ZodString; subagentId: z.ZodString; jobStatus: z.ZodEnum<{ failed: "failed"; completed: "completed"; cancelled: "cancelled"; }>; }, z.core.$strip>], "transition">; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"budget">; payload: z.ZodObject<{ kind: z.ZodLiteral<"monetary">; runningCostUsd: z.ZodNumber; maxBudgetUsd: z.ZodNumber; lastTurnCostUsd: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"abort">; payload: z.ZodObject<{ origin: z.ZodEnum<{ cascade: "cascade"; budget: "budget"; timeout: "timeout"; user_signal: "user_signal"; hook_block: "hook_block"; }>; cascadedTo: z.ZodReadonly>; reason: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"compaction">; payload: z.ZodObject<{ trigger: z.ZodEnum<{ manual: "manual"; token_threshold: "token_threshold"; turn_count: "turn_count"; }>; preCompactionMessages: z.ZodArray; summary: z.ZodString; keptTailCount: z.ZodNumber; keepLastNConfig: z.ZodNumber; messagesBefore: z.ZodNumber; messagesAfter: z.ZodNumber; tokensSavedEstimate: z.ZodOptional; summarizationTokens: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"closure">; payload: z.ZodObject<{ reason: z.ZodEnum<{ abort: "abort"; timeout: "timeout"; model_end_turn: "model_end_turn"; truncated: "truncated"; iteration_cap: "iteration_cap"; budget_exceeded: "budget_exceeded"; hook_blocked: "hook_blocked"; max_turns_exceeded: "max_turns_exceeded"; }>; finalTurnCount: z.ZodNumber; finalCostUsd: z.ZodNumber; finalTokens: z.ZodObject<{ input: z.ZodOptional; output: z.ZodOptional; cacheRead: z.ZodOptional; cacheCreation: z.ZodOptional; }, z.core.$strip>; lastStopReason: z.ZodOptional; guidance: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"claim">; payload: z.ZodObject<{ source: z.ZodString; assertion: z.ZodString; evidence: z.ZodReadonly>; confidence: z.ZodNumber; dissent: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"browser_event">; payload: z.ZodObject<{ tool: z.ZodEnum<{ browser_open: "browser_open"; browser_observe: "browser_observe"; browser_act: "browser_act"; browser_screenshot: "browser_screenshot"; browser_extract: "browser_extract"; browser_close: "browser_close"; }>; action: z.ZodOptional>; toolUseId: z.ZodString; backend: z.ZodOptional>; backendReason: z.ZodOptional; target: z.ZodOptional; text: z.ZodOptional; role: z.ZodOptional; elementId: z.ZodOptional; selectorHash: z.ZodOptional; }, z.core.$strip>>; urlBefore: z.ZodNullable; urlAfter: z.ZodNullable; status: z.ZodEnum<{ ok: "ok"; error: "error"; ambiguous_target: "ambiguous_target"; blocked_by_policy: "blocked_by_policy"; }>; screenshotPath: z.ZodOptional; observationSummary: z.ZodOptional; error: z.ZodOptional>; durationMs: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"queued_user_message">; payload: z.ZodObject<{ jobId: z.ZodString; subagentId: z.ZodString; byteLength: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"session_phase">; payload: z.ZodObject<{ phase: z.ZodEnum<{ bootstrap_start: "bootstrap_start"; bootstrap_done: "bootstrap_done"; session_init_start: "session_init_start"; session_init_done: "session_init_done"; mcp_connect_start: "mcp_connect_start"; mcp_connect_done: "mcp_connect_done"; mcp_server_start: "mcp_server_start"; mcp_server_done: "mcp_server_done"; loop_start: "loop_start"; loop_end: "loop_end"; model_ttfb: "model_ttfb"; interrupt_halt: "interrupt_halt"; rate_limit: "rate_limit"; ttfb_timeout: "ttfb_timeout"; usage_limit_pause: "usage_limit_pause"; usage_limit_resume: "usage_limit_resume"; overload_pause: "overload_pause"; overload_resume: "overload_resume"; idle_watchdog_fired: "idle_watchdog_fired"; pause_extension_granted: "pause_extension_granted"; suspected_loop: "suspected_loop"; compaction_disabled: "compaction_disabled"; boot_warning: "boot_warning"; workspace_subscribed: "workspace_subscribed"; workspace_delivery: "workspace_delivery"; gate_shape: "gate_shape"; }>; durationMs: z.ZodOptional; metadata: z.ZodOptional>>; model: z.ZodOptional; resolvedModel: z.ZodOptional; origin: z.ZodOptional>; actor: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>], "kind">; export declare const TraceEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ ts: z.ZodString; seq: z.ZodNumber; kind: z.ZodLiteral<"tool_call">; payload: z.ZodDiscriminatedUnion<[z.ZodObject<{ phase: z.ZodLiteral<"started">; toolUseId: z.ZodString; name: z.ZodString; inputBytes: z.ZodNumber; argsFingerprint: z.ZodOptional; resourceFingerprint: z.ZodOptional; subagentId: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ phase: z.ZodLiteral<"completed">; toolUseId: z.ZodString; name: z.ZodString; resultBytes: z.ZodNumber; isError: z.ZodBoolean; truncated: z.ZodBoolean; durationMs: z.ZodNumber; incomplete: z.ZodOptional; incompleteReason: z.ZodOptional; circuitBreaker: z.ZodOptional; failureClass: z.ZodOptional>; batchIndex: z.ZodOptional; batchSize: z.ZodOptional; subagentId: z.ZodOptional; }, z.core.$strip>], "phase">; }, z.core.$strip>, z.ZodObject<{ ts: z.ZodString; seq: z.ZodNumber; kind: z.ZodLiteral<"hook_decision">; payload: z.ZodObject<{ hookEvent: z.ZodEnum<{ PreToolUse: "PreToolUse"; PostToolUse: "PostToolUse"; PostToolUseFailure: "PostToolUseFailure"; SessionStart: "SessionStart"; SessionEnd: "SessionEnd"; SubagentStart: "SubagentStart"; SubagentStop: "SubagentStop"; }>; decision: z.ZodOptional, z.ZodLiteral<"approve">]>>; reason: z.ZodOptional; blockedTool: z.ZodOptional; subagentId: z.ZodOptional; injectedContextBytes: z.ZodOptional; durationMs: z.ZodOptional; approvalOutcome: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ ts: z.ZodString; seq: z.ZodNumber; kind: z.ZodLiteral<"subagent_lifecycle">; payload: z.ZodDiscriminatedUnion<[z.ZodObject<{ transition: z.ZodLiteral<"started">; subagentId: z.ZodString; parentId: z.ZodString; model: z.ZodString; allowedTools: z.ZodOptional>>; systemPromptHash: z.ZodOptional; promptHead: z.ZodOptional; agentType: z.ZodOptional; resolvedAgentType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ transition: z.ZodLiteral<"succeeded">; subagentId: z.ZodString; durationMs: z.ZodNumber; turnCount: z.ZodNumber; totalCostUsd: z.ZodOptional; outputBytes: z.ZodNumber; stopReason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ transition: z.ZodLiteral<"failed">; subagentId: z.ZodString; errorClass: z.ZodString; errorMessage: z.ZodString; partialOutputBytes: z.ZodNumber; failureClass: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ transition: z.ZodLiteral<"cancelled">; subagentId: z.ZodString; source: z.ZodEnum<{ explicit: "explicit"; cascade: "cascade"; }>; timeout: z.ZodOptional; }, z.core.$strip>], "transition">; }, z.core.$strip>, z.ZodObject<{ ts: z.ZodString; seq: z.ZodNumber; kind: z.ZodLiteral<"background_agent">; payload: z.ZodDiscriminatedUnion<[z.ZodObject<{ transition: z.ZodLiteral<"started">; jobId: z.ZodString; subagentId: z.ZodString; label: z.ZodString; model: z.ZodString; }, z.core.$strip>, z.ZodObject<{ transition: z.ZodLiteral<"completed">; jobId: z.ZodString; subagentId: z.ZodString; durationMs: z.ZodNumber; outputBytes: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ transition: z.ZodLiteral<"failed">; jobId: z.ZodString; subagentId: z.ZodString; durationMs: z.ZodNumber; errorClass: z.ZodString; errorMessage: z.ZodString; }, z.core.$strip>, z.ZodObject<{ transition: z.ZodLiteral<"cancelled">; jobId: z.ZodString; subagentId: z.ZodString; source: z.ZodEnum<{ explicit: "explicit"; cascade: "cascade"; }>; cancelledBy: z.ZodOptional>; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ transition: z.ZodLiteral<"joined">; jobId: z.ZodString; subagentId: z.ZodString; jobStatus: z.ZodEnum<{ failed: "failed"; completed: "completed"; cancelled: "cancelled"; }>; }, z.core.$strip>, z.ZodObject<{ transition: z.ZodLiteral<"delivered">; jobId: z.ZodString; subagentId: z.ZodString; jobStatus: z.ZodEnum<{ failed: "failed"; completed: "completed"; cancelled: "cancelled"; }>; }, z.core.$strip>], "transition">; }, z.core.$strip>, z.ZodObject<{ ts: z.ZodString; seq: z.ZodNumber; kind: z.ZodLiteral<"budget">; payload: z.ZodObject<{ kind: z.ZodLiteral<"monetary">; runningCostUsd: z.ZodNumber; maxBudgetUsd: z.ZodNumber; lastTurnCostUsd: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ ts: z.ZodString; seq: z.ZodNumber; kind: z.ZodLiteral<"abort">; payload: z.ZodObject<{ origin: z.ZodEnum<{ cascade: "cascade"; budget: "budget"; timeout: "timeout"; user_signal: "user_signal"; hook_block: "hook_block"; }>; cascadedTo: z.ZodReadonly>; reason: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ ts: z.ZodString; seq: z.ZodNumber; kind: z.ZodLiteral<"compaction">; payload: z.ZodObject<{ trigger: z.ZodEnum<{ manual: "manual"; token_threshold: "token_threshold"; turn_count: "turn_count"; }>; preCompactionMessagesRef: z.ZodObject<{ path: z.ZodString; sizeBytes: z.ZodNumber; sha256: z.ZodString; }, z.core.$strip>; summary: z.ZodString; keptTailCount: z.ZodNumber; keepLastNConfig: z.ZodNumber; messagesBefore: z.ZodNumber; messagesAfter: z.ZodNumber; tokensSavedEstimate: z.ZodOptional; summarizationTokens: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ ts: z.ZodString; seq: z.ZodNumber; kind: z.ZodLiteral<"closure">; payload: z.ZodObject<{ reason: z.ZodEnum<{ abort: "abort"; timeout: "timeout"; model_end_turn: "model_end_turn"; truncated: "truncated"; iteration_cap: "iteration_cap"; budget_exceeded: "budget_exceeded"; hook_blocked: "hook_blocked"; max_turns_exceeded: "max_turns_exceeded"; }>; finalTurnCount: z.ZodNumber; finalCostUsd: z.ZodNumber; finalTokens: z.ZodObject<{ input: z.ZodOptional; output: z.ZodOptional; cacheRead: z.ZodOptional; cacheCreation: z.ZodOptional; }, z.core.$strip>; lastStopReason: z.ZodOptional; guidance: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ ts: z.ZodString; seq: z.ZodNumber; kind: z.ZodLiteral<"claim">; payload: z.ZodObject<{ source: z.ZodString; assertion: z.ZodString; evidence: z.ZodReadonly>; confidence: z.ZodNumber; dissent: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ ts: z.ZodString; seq: z.ZodNumber; kind: z.ZodLiteral<"browser_event">; payload: z.ZodObject<{ tool: z.ZodEnum<{ browser_open: "browser_open"; browser_observe: "browser_observe"; browser_act: "browser_act"; browser_screenshot: "browser_screenshot"; browser_extract: "browser_extract"; browser_close: "browser_close"; }>; action: z.ZodOptional>; toolUseId: z.ZodString; backend: z.ZodOptional>; backendReason: z.ZodOptional; target: z.ZodOptional; text: z.ZodOptional; role: z.ZodOptional; elementId: z.ZodOptional; selectorHash: z.ZodOptional; }, z.core.$strip>>; urlBefore: z.ZodNullable; urlAfter: z.ZodNullable; status: z.ZodEnum<{ ok: "ok"; error: "error"; ambiguous_target: "ambiguous_target"; blocked_by_policy: "blocked_by_policy"; }>; screenshotPath: z.ZodOptional; observationSummary: z.ZodOptional; error: z.ZodOptional>; durationMs: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ ts: z.ZodString; seq: z.ZodNumber; kind: z.ZodLiteral<"queued_user_message">; payload: z.ZodObject<{ jobId: z.ZodString; subagentId: z.ZodString; byteLength: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ ts: z.ZodString; seq: z.ZodNumber; kind: z.ZodLiteral<"session_phase">; payload: z.ZodObject<{ phase: z.ZodEnum<{ bootstrap_start: "bootstrap_start"; bootstrap_done: "bootstrap_done"; session_init_start: "session_init_start"; session_init_done: "session_init_done"; mcp_connect_start: "mcp_connect_start"; mcp_connect_done: "mcp_connect_done"; mcp_server_start: "mcp_server_start"; mcp_server_done: "mcp_server_done"; loop_start: "loop_start"; loop_end: "loop_end"; model_ttfb: "model_ttfb"; interrupt_halt: "interrupt_halt"; rate_limit: "rate_limit"; ttfb_timeout: "ttfb_timeout"; usage_limit_pause: "usage_limit_pause"; usage_limit_resume: "usage_limit_resume"; overload_pause: "overload_pause"; overload_resume: "overload_resume"; idle_watchdog_fired: "idle_watchdog_fired"; pause_extension_granted: "pause_extension_granted"; suspected_loop: "suspected_loop"; compaction_disabled: "compaction_disabled"; boot_warning: "boot_warning"; workspace_subscribed: "workspace_subscribed"; workspace_delivery: "workspace_delivery"; gate_shape: "gate_shape"; }>; durationMs: z.ZodOptional; metadata: z.ZodOptional>>; model: z.ZodOptional; resolvedModel: z.ZodOptional; origin: z.ZodOptional>; actor: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ ts: z.ZodString; seq: z.ZodNumber; kind: z.ZodLiteral<"session_sealed">; payload: z.ZodObject<{ status: z.ZodEnum<{ failed: "failed"; cancelled: "cancelled"; succeeded: "succeeded"; }>; finalCostUsd: z.ZodNumber; finalTurnCount: z.ZodNumber; closedAt: z.ZodString; incomplete: z.ZodOptional; subagentCount: z.ZodOptional; subagentTokens: z.ZodOptional; output: z.ZodOptional; cacheRead: z.ZodOptional; cacheCreation: z.ZodOptional; }, z.core.$strip>>; subagentCostUsd: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>], "kind">;