export type AgentExecutionMode = 'foreground' | 'background'; export interface AgentInput { prompt: string; attachments?: string[]; model?: string; max_turns?: number; max_turns_explicit: boolean; max_tool_use_iterations?: number; max_tool_use_iterations_explicit: boolean; id_prefix?: string; agent_type?: string; mode: AgentExecutionMode; cwd?: string; writeRoots?: string[]; readRoots?: string[]; isolation?: 'worktree'; progress_events?: boolean; } export declare function parseAgentInput(input: unknown): AgentInput;