import { z } from 'zod'; export type SidecarEventType = 'tool.call' | 'session.state' | 'tool.control' | 'inbox.approval'; export type SidecarEventVersion = 1; export declare const RiskLevelSchema: z.ZodEnum<["low", "medium", "high"]>; export type RiskLevel = z.infer; export declare const DecisionRoleSchema: z.ZodEnum<["human", "secretary", "system"]>; export type DecisionRole = z.infer; export declare const ToolCallStatusSchema: z.ZodEnum<["calling", "waiting_approval", "approved", "rejected", "running", "done", "error"]>; export type ToolCallStatus = z.infer; export declare const ToolCallEventV1Schema: z.ZodObject<{ type: z.ZodLiteral<"tool.call">; version: z.ZodOptional>; sessionId: z.ZodString; toolCallId: z.ZodString; toolName: z.ZodString; risk: z.ZodOptional>; status: z.ZodEnum<["calling", "waiting_approval", "approved", "rejected", "running", "done", "error"]>; approvalOptions: z.ZodOptional; description: z.ZodOptional; }, "strict", z.ZodTypeAny, { label: string; optionId: string; description?: string | undefined; kind?: string | undefined; }, { label: string; optionId: string; description?: string | undefined; kind?: string | undefined; }>, "many">>; expiresAt: z.ZodOptional; target: z.ZodOptional; action: z.ZodOptional; arguments: z.ZodOptional>; result: z.ZodOptional; error: z.ZodOptional; duration: z.ZodOptional; inboxItemId: z.ZodOptional; decisionBy: z.ZodOptional; decisionRole: z.ZodOptional>; onBehalfOf: z.ZodOptional; policyVersion: z.ZodOptional; timestamp: z.ZodString; }, "strict", z.ZodTypeAny, { status: "error" | "running" | "rejected" | "approved" | "done" | "calling" | "waiting_approval"; toolCallId: string; toolName: string; type: "tool.call"; sessionId: string; timestamp: string; target?: string | undefined; action?: string | undefined; version?: 1 | undefined; risk?: "low" | "medium" | "high" | undefined; approvalOptions?: { label: string; optionId: string; description?: string | undefined; kind?: string | undefined; }[] | undefined; expiresAt?: string | undefined; policyVersion?: string | undefined; error?: string | undefined; decisionBy?: string | undefined; decisionRole?: "system" | "human" | "secretary" | undefined; onBehalfOf?: string | undefined; inboxItemId?: string | undefined; arguments?: Record | undefined; result?: unknown; duration?: number | undefined; }, { status: "error" | "running" | "rejected" | "approved" | "done" | "calling" | "waiting_approval"; toolCallId: string; toolName: string; type: "tool.call"; sessionId: string; timestamp: string; target?: string | undefined; action?: string | undefined; version?: 1 | undefined; risk?: "low" | "medium" | "high" | undefined; approvalOptions?: { label: string; optionId: string; description?: string | undefined; kind?: string | undefined; }[] | undefined; expiresAt?: string | undefined; policyVersion?: string | undefined; error?: string | undefined; decisionBy?: string | undefined; decisionRole?: "system" | "human" | "secretary" | undefined; onBehalfOf?: string | undefined; inboxItemId?: string | undefined; arguments?: Record | undefined; result?: unknown; duration?: number | undefined; }>; export declare const ToolCallEventSchema: z.ZodObject<{ type: z.ZodLiteral<"tool.call">; version: z.ZodOptional>; sessionId: z.ZodString; toolCallId: z.ZodString; toolName: z.ZodString; risk: z.ZodOptional>; status: z.ZodEnum<["calling", "waiting_approval", "approved", "rejected", "running", "done", "error"]>; approvalOptions: z.ZodOptional; description: z.ZodOptional; }, "strict", z.ZodTypeAny, { label: string; optionId: string; description?: string | undefined; kind?: string | undefined; }, { label: string; optionId: string; description?: string | undefined; kind?: string | undefined; }>, "many">>; expiresAt: z.ZodOptional; target: z.ZodOptional; action: z.ZodOptional; arguments: z.ZodOptional>; result: z.ZodOptional; error: z.ZodOptional; duration: z.ZodOptional; inboxItemId: z.ZodOptional; decisionBy: z.ZodOptional; decisionRole: z.ZodOptional>; onBehalfOf: z.ZodOptional; policyVersion: z.ZodOptional; timestamp: z.ZodString; }, "strict", z.ZodTypeAny, { status: "error" | "running" | "rejected" | "approved" | "done" | "calling" | "waiting_approval"; toolCallId: string; toolName: string; type: "tool.call"; sessionId: string; timestamp: string; target?: string | undefined; action?: string | undefined; version?: 1 | undefined; risk?: "low" | "medium" | "high" | undefined; approvalOptions?: { label: string; optionId: string; description?: string | undefined; kind?: string | undefined; }[] | undefined; expiresAt?: string | undefined; policyVersion?: string | undefined; error?: string | undefined; decisionBy?: string | undefined; decisionRole?: "system" | "human" | "secretary" | undefined; onBehalfOf?: string | undefined; inboxItemId?: string | undefined; arguments?: Record | undefined; result?: unknown; duration?: number | undefined; }, { status: "error" | "running" | "rejected" | "approved" | "done" | "calling" | "waiting_approval"; toolCallId: string; toolName: string; type: "tool.call"; sessionId: string; timestamp: string; target?: string | undefined; action?: string | undefined; version?: 1 | undefined; risk?: "low" | "medium" | "high" | undefined; approvalOptions?: { label: string; optionId: string; description?: string | undefined; kind?: string | undefined; }[] | undefined; expiresAt?: string | undefined; policyVersion?: string | undefined; error?: string | undefined; decisionBy?: string | undefined; decisionRole?: "system" | "human" | "secretary" | undefined; onBehalfOf?: string | undefined; inboxItemId?: string | undefined; arguments?: Record | undefined; result?: unknown; duration?: number | undefined; }>; export type ToolCallEvent = z.infer; export declare const SessionToolSchema: z.ZodEnum<["claude-code", "cursor", "windsurf"]>; export type SessionTool = z.infer; export declare const SessionStatusSchema: z.ZodEnum<["active", "paused", "completed", "error"]>; export type SessionStatus = z.infer; export declare const SessionStateEventV1Schema: z.ZodObject<{ type: z.ZodLiteral<"session.state">; version: z.ZodOptional>; sessionId: z.ZodString; chat: z.ZodString; policy: z.ZodOptional; policyVersion: z.ZodOptional; status: z.ZodEnum<["active", "paused", "completed", "error"]>; previousStatus: z.ZodString; tool: z.ZodEnum<["claude-code", "cursor", "windsurf"]>; tokenUsage: z.ZodNumber; timestamp: z.ZodString; }, "strict", z.ZodTypeAny, { status: "error" | "active" | "completed" | "paused"; tokenUsage: number; type: "session.state"; chat: string; tool: "claude-code" | "cursor" | "windsurf"; sessionId: string; timestamp: string; previousStatus: string; version?: 1 | undefined; policy?: string | undefined; policyVersion?: string | undefined; }, { status: "error" | "active" | "completed" | "paused"; tokenUsage: number; type: "session.state"; chat: string; tool: "claude-code" | "cursor" | "windsurf"; sessionId: string; timestamp: string; previousStatus: string; version?: 1 | undefined; policy?: string | undefined; policyVersion?: string | undefined; }>; export declare const SessionStateEventSchema: z.ZodObject<{ type: z.ZodLiteral<"session.state">; version: z.ZodOptional>; sessionId: z.ZodString; chat: z.ZodString; policy: z.ZodOptional; policyVersion: z.ZodOptional; status: z.ZodEnum<["active", "paused", "completed", "error"]>; previousStatus: z.ZodString; tool: z.ZodEnum<["claude-code", "cursor", "windsurf"]>; tokenUsage: z.ZodNumber; timestamp: z.ZodString; }, "strict", z.ZodTypeAny, { status: "error" | "active" | "completed" | "paused"; tokenUsage: number; type: "session.state"; chat: string; tool: "claude-code" | "cursor" | "windsurf"; sessionId: string; timestamp: string; previousStatus: string; version?: 1 | undefined; policy?: string | undefined; policyVersion?: string | undefined; }, { status: "error" | "active" | "completed" | "paused"; tokenUsage: number; type: "session.state"; chat: string; tool: "claude-code" | "cursor" | "windsurf"; sessionId: string; timestamp: string; previousStatus: string; version?: 1 | undefined; policy?: string | undefined; policyVersion?: string | undefined; }>; export type SessionStateEvent = z.infer; export declare const ToolControlCommandNameSchema: z.ZodEnum<["approve", "reject", "pause", "resume", "stop", "inject_message", "approve_pattern"]>; export type ToolControlCommandName = z.infer; export declare const ToolControlCommandV1Schema: z.ZodObject<{ commandId: z.ZodOptional; type: z.ZodLiteral<"tool.control">; version: z.ZodOptional>; command: z.ZodEnum<["approve", "reject", "pause", "resume", "stop", "inject_message", "approve_pattern"]>; sessionId: z.ZodString; toolCallId: z.ZodOptional; message: z.ZodOptional; pattern: z.ZodOptional; inboxItemId: z.ZodOptional; actor: z.ZodOptional; onBehalfOf: z.ZodOptional; }, "strip", z.ZodTypeAny, { actorRole: "system" | "human" | "secretary"; actorWebId: string; onBehalfOf?: string | undefined; }, { actorRole: "system" | "human" | "secretary"; actorWebId: string; onBehalfOf?: string | undefined; }>>; policyVersion: z.ZodOptional; timestamp: z.ZodString; }, "strict", z.ZodTypeAny, { type: "tool.control"; sessionId: string; timestamp: string; command: "approve" | "reject" | "pause" | "resume" | "stop" | "inject_message" | "approve_pattern"; message?: string | undefined; actor?: { actorRole: "system" | "human" | "secretary"; actorWebId: string; onBehalfOf?: string | undefined; } | undefined; version?: 1 | undefined; policyVersion?: string | undefined; toolCallId?: string | undefined; inboxItemId?: string | undefined; commandId?: string | undefined; pattern?: string | undefined; }, { type: "tool.control"; sessionId: string; timestamp: string; command: "approve" | "reject" | "pause" | "resume" | "stop" | "inject_message" | "approve_pattern"; message?: string | undefined; actor?: { actorRole: "system" | "human" | "secretary"; actorWebId: string; onBehalfOf?: string | undefined; } | undefined; version?: 1 | undefined; policyVersion?: string | undefined; toolCallId?: string | undefined; inboxItemId?: string | undefined; commandId?: string | undefined; pattern?: string | undefined; }>; export declare const ToolControlCommandSchema: z.ZodObject<{ commandId: z.ZodOptional; type: z.ZodLiteral<"tool.control">; version: z.ZodOptional>; command: z.ZodEnum<["approve", "reject", "pause", "resume", "stop", "inject_message", "approve_pattern"]>; sessionId: z.ZodString; toolCallId: z.ZodOptional; message: z.ZodOptional; pattern: z.ZodOptional; inboxItemId: z.ZodOptional; actor: z.ZodOptional; onBehalfOf: z.ZodOptional; }, "strip", z.ZodTypeAny, { actorRole: "system" | "human" | "secretary"; actorWebId: string; onBehalfOf?: string | undefined; }, { actorRole: "system" | "human" | "secretary"; actorWebId: string; onBehalfOf?: string | undefined; }>>; policyVersion: z.ZodOptional; timestamp: z.ZodString; }, "strict", z.ZodTypeAny, { type: "tool.control"; sessionId: string; timestamp: string; command: "approve" | "reject" | "pause" | "resume" | "stop" | "inject_message" | "approve_pattern"; message?: string | undefined; actor?: { actorRole: "system" | "human" | "secretary"; actorWebId: string; onBehalfOf?: string | undefined; } | undefined; version?: 1 | undefined; policyVersion?: string | undefined; toolCallId?: string | undefined; inboxItemId?: string | undefined; commandId?: string | undefined; pattern?: string | undefined; }, { type: "tool.control"; sessionId: string; timestamp: string; command: "approve" | "reject" | "pause" | "resume" | "stop" | "inject_message" | "approve_pattern"; message?: string | undefined; actor?: { actorRole: "system" | "human" | "secretary"; actorWebId: string; onBehalfOf?: string | undefined; } | undefined; version?: 1 | undefined; policyVersion?: string | undefined; toolCallId?: string | undefined; inboxItemId?: string | undefined; commandId?: string | undefined; pattern?: string | undefined; }>; export type ToolControlCommand = z.infer; export declare const InboxApprovalStatusSchema: z.ZodEnum<["pending", "approved", "rejected", "expired"]>; export type InboxApprovalStatus = z.infer; export declare const InboxApprovalEventV1Schema: z.ZodObject<{ type: z.ZodLiteral<"inbox.approval">; version: z.ZodOptional>; inboxItemId: z.ZodString; sessionId: z.ZodString; toolCallId: z.ZodString; target: z.ZodOptional; action: z.ZodOptional; policy: z.ZodOptional; policyVersion: z.ZodOptional; risk: z.ZodEnum<["low", "medium", "high"]>; status: z.ZodEnum<["pending", "approved", "rejected", "expired"]>; approvalOptions: z.ZodOptional; description: z.ZodOptional; }, "strict", z.ZodTypeAny, { label: string; optionId: string; description?: string | undefined; kind?: string | undefined; }, { label: string; optionId: string; description?: string | undefined; kind?: string | undefined; }>, "many">>; assignedTo: z.ZodOptional; createdAt: z.ZodString; expiresAt: z.ZodOptional; resolvedAt: z.ZodOptional; }, "strict", z.ZodTypeAny, { createdAt: string; status: "pending" | "rejected" | "approved" | "expired"; risk: "low" | "medium" | "high"; toolCallId: string; inboxItemId: string; type: "inbox.approval"; sessionId: string; target?: string | undefined; action?: string | undefined; version?: 1 | undefined; assignedTo?: string | undefined; resolvedAt?: string | undefined; policy?: string | undefined; approvalOptions?: { label: string; optionId: string; description?: string | undefined; kind?: string | undefined; }[] | undefined; expiresAt?: string | undefined; policyVersion?: string | undefined; }, { createdAt: string; status: "pending" | "rejected" | "approved" | "expired"; risk: "low" | "medium" | "high"; toolCallId: string; inboxItemId: string; type: "inbox.approval"; sessionId: string; target?: string | undefined; action?: string | undefined; version?: 1 | undefined; assignedTo?: string | undefined; resolvedAt?: string | undefined; policy?: string | undefined; approvalOptions?: { label: string; optionId: string; description?: string | undefined; kind?: string | undefined; }[] | undefined; expiresAt?: string | undefined; policyVersion?: string | undefined; }>; export declare const InboxApprovalEventSchema: z.ZodObject<{ type: z.ZodLiteral<"inbox.approval">; version: z.ZodOptional>; inboxItemId: z.ZodString; sessionId: z.ZodString; toolCallId: z.ZodString; target: z.ZodOptional; action: z.ZodOptional; policy: z.ZodOptional; policyVersion: z.ZodOptional; risk: z.ZodEnum<["low", "medium", "high"]>; status: z.ZodEnum<["pending", "approved", "rejected", "expired"]>; approvalOptions: z.ZodOptional; description: z.ZodOptional; }, "strict", z.ZodTypeAny, { label: string; optionId: string; description?: string | undefined; kind?: string | undefined; }, { label: string; optionId: string; description?: string | undefined; kind?: string | undefined; }>, "many">>; assignedTo: z.ZodOptional; createdAt: z.ZodString; expiresAt: z.ZodOptional; resolvedAt: z.ZodOptional; }, "strict", z.ZodTypeAny, { createdAt: string; status: "pending" | "rejected" | "approved" | "expired"; risk: "low" | "medium" | "high"; toolCallId: string; inboxItemId: string; type: "inbox.approval"; sessionId: string; target?: string | undefined; action?: string | undefined; version?: 1 | undefined; assignedTo?: string | undefined; resolvedAt?: string | undefined; policy?: string | undefined; approvalOptions?: { label: string; optionId: string; description?: string | undefined; kind?: string | undefined; }[] | undefined; expiresAt?: string | undefined; policyVersion?: string | undefined; }, { createdAt: string; status: "pending" | "rejected" | "approved" | "expired"; risk: "low" | "medium" | "high"; toolCallId: string; inboxItemId: string; type: "inbox.approval"; sessionId: string; target?: string | undefined; action?: string | undefined; version?: 1 | undefined; assignedTo?: string | undefined; resolvedAt?: string | undefined; policy?: string | undefined; approvalOptions?: { label: string; optionId: string; description?: string | undefined; kind?: string | undefined; }[] | undefined; expiresAt?: string | undefined; policyVersion?: string | undefined; }>; export type InboxApprovalEvent = z.infer; export declare const SidecarEventSchema: z.ZodUnion<[z.ZodObject<{ type: z.ZodLiteral<"tool.call">; version: z.ZodOptional>; sessionId: z.ZodString; toolCallId: z.ZodString; toolName: z.ZodString; risk: z.ZodOptional>; status: z.ZodEnum<["calling", "waiting_approval", "approved", "rejected", "running", "done", "error"]>; approvalOptions: z.ZodOptional; description: z.ZodOptional; }, "strict", z.ZodTypeAny, { label: string; optionId: string; description?: string | undefined; kind?: string | undefined; }, { label: string; optionId: string; description?: string | undefined; kind?: string | undefined; }>, "many">>; expiresAt: z.ZodOptional; target: z.ZodOptional; action: z.ZodOptional; arguments: z.ZodOptional>; result: z.ZodOptional; error: z.ZodOptional; duration: z.ZodOptional; inboxItemId: z.ZodOptional; decisionBy: z.ZodOptional; decisionRole: z.ZodOptional>; onBehalfOf: z.ZodOptional; policyVersion: z.ZodOptional; timestamp: z.ZodString; }, "strict", z.ZodTypeAny, { status: "error" | "running" | "rejected" | "approved" | "done" | "calling" | "waiting_approval"; toolCallId: string; toolName: string; type: "tool.call"; sessionId: string; timestamp: string; target?: string | undefined; action?: string | undefined; version?: 1 | undefined; risk?: "low" | "medium" | "high" | undefined; approvalOptions?: { label: string; optionId: string; description?: string | undefined; kind?: string | undefined; }[] | undefined; expiresAt?: string | undefined; policyVersion?: string | undefined; error?: string | undefined; decisionBy?: string | undefined; decisionRole?: "system" | "human" | "secretary" | undefined; onBehalfOf?: string | undefined; inboxItemId?: string | undefined; arguments?: Record | undefined; result?: unknown; duration?: number | undefined; }, { status: "error" | "running" | "rejected" | "approved" | "done" | "calling" | "waiting_approval"; toolCallId: string; toolName: string; type: "tool.call"; sessionId: string; timestamp: string; target?: string | undefined; action?: string | undefined; version?: 1 | undefined; risk?: "low" | "medium" | "high" | undefined; approvalOptions?: { label: string; optionId: string; description?: string | undefined; kind?: string | undefined; }[] | undefined; expiresAt?: string | undefined; policyVersion?: string | undefined; error?: string | undefined; decisionBy?: string | undefined; decisionRole?: "system" | "human" | "secretary" | undefined; onBehalfOf?: string | undefined; inboxItemId?: string | undefined; arguments?: Record | undefined; result?: unknown; duration?: number | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"session.state">; version: z.ZodOptional>; sessionId: z.ZodString; chat: z.ZodString; policy: z.ZodOptional; policyVersion: z.ZodOptional; status: z.ZodEnum<["active", "paused", "completed", "error"]>; previousStatus: z.ZodString; tool: z.ZodEnum<["claude-code", "cursor", "windsurf"]>; tokenUsage: z.ZodNumber; timestamp: z.ZodString; }, "strict", z.ZodTypeAny, { status: "error" | "active" | "completed" | "paused"; tokenUsage: number; type: "session.state"; chat: string; tool: "claude-code" | "cursor" | "windsurf"; sessionId: string; timestamp: string; previousStatus: string; version?: 1 | undefined; policy?: string | undefined; policyVersion?: string | undefined; }, { status: "error" | "active" | "completed" | "paused"; tokenUsage: number; type: "session.state"; chat: string; tool: "claude-code" | "cursor" | "windsurf"; sessionId: string; timestamp: string; previousStatus: string; version?: 1 | undefined; policy?: string | undefined; policyVersion?: string | undefined; }>, z.ZodObject<{ commandId: z.ZodOptional; type: z.ZodLiteral<"tool.control">; version: z.ZodOptional>; command: z.ZodEnum<["approve", "reject", "pause", "resume", "stop", "inject_message", "approve_pattern"]>; sessionId: z.ZodString; toolCallId: z.ZodOptional; message: z.ZodOptional; pattern: z.ZodOptional; inboxItemId: z.ZodOptional; actor: z.ZodOptional; onBehalfOf: z.ZodOptional; }, "strip", z.ZodTypeAny, { actorRole: "system" | "human" | "secretary"; actorWebId: string; onBehalfOf?: string | undefined; }, { actorRole: "system" | "human" | "secretary"; actorWebId: string; onBehalfOf?: string | undefined; }>>; policyVersion: z.ZodOptional; timestamp: z.ZodString; }, "strict", z.ZodTypeAny, { type: "tool.control"; sessionId: string; timestamp: string; command: "approve" | "reject" | "pause" | "resume" | "stop" | "inject_message" | "approve_pattern"; message?: string | undefined; actor?: { actorRole: "system" | "human" | "secretary"; actorWebId: string; onBehalfOf?: string | undefined; } | undefined; version?: 1 | undefined; policyVersion?: string | undefined; toolCallId?: string | undefined; inboxItemId?: string | undefined; commandId?: string | undefined; pattern?: string | undefined; }, { type: "tool.control"; sessionId: string; timestamp: string; command: "approve" | "reject" | "pause" | "resume" | "stop" | "inject_message" | "approve_pattern"; message?: string | undefined; actor?: { actorRole: "system" | "human" | "secretary"; actorWebId: string; onBehalfOf?: string | undefined; } | undefined; version?: 1 | undefined; policyVersion?: string | undefined; toolCallId?: string | undefined; inboxItemId?: string | undefined; commandId?: string | undefined; pattern?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"inbox.approval">; version: z.ZodOptional>; inboxItemId: z.ZodString; sessionId: z.ZodString; toolCallId: z.ZodString; target: z.ZodOptional; action: z.ZodOptional; policy: z.ZodOptional; policyVersion: z.ZodOptional; risk: z.ZodEnum<["low", "medium", "high"]>; status: z.ZodEnum<["pending", "approved", "rejected", "expired"]>; approvalOptions: z.ZodOptional; description: z.ZodOptional; }, "strict", z.ZodTypeAny, { label: string; optionId: string; description?: string | undefined; kind?: string | undefined; }, { label: string; optionId: string; description?: string | undefined; kind?: string | undefined; }>, "many">>; assignedTo: z.ZodOptional; createdAt: z.ZodString; expiresAt: z.ZodOptional; resolvedAt: z.ZodOptional; }, "strict", z.ZodTypeAny, { createdAt: string; status: "pending" | "rejected" | "approved" | "expired"; risk: "low" | "medium" | "high"; toolCallId: string; inboxItemId: string; type: "inbox.approval"; sessionId: string; target?: string | undefined; action?: string | undefined; version?: 1 | undefined; assignedTo?: string | undefined; resolvedAt?: string | undefined; policy?: string | undefined; approvalOptions?: { label: string; optionId: string; description?: string | undefined; kind?: string | undefined; }[] | undefined; expiresAt?: string | undefined; policyVersion?: string | undefined; }, { createdAt: string; status: "pending" | "rejected" | "approved" | "expired"; risk: "low" | "medium" | "high"; toolCallId: string; inboxItemId: string; type: "inbox.approval"; sessionId: string; target?: string | undefined; action?: string | undefined; version?: 1 | undefined; assignedTo?: string | undefined; resolvedAt?: string | undefined; policy?: string | undefined; approvalOptions?: { label: string; optionId: string; description?: string | undefined; kind?: string | undefined; }[] | undefined; expiresAt?: string | undefined; policyVersion?: string | undefined; }>]>; export type SidecarEvent = z.infer; export declare function getSidecarEventVersion(_event: SidecarEvent): SidecarEventVersion;