import { Agent } from '../agent'; import { RunItem, RunToolApprovalItem } from '../items'; import { Logger } from '../logger'; import { FunctionToolResult } from '../tool'; import { RunContext } from '../runContext'; import type { UnknownContext } from '../types'; import type { Runner, ToolErrorFormatter } from '../run'; import type { ToolRunApplyPatch, ToolRunShell } from './types'; export declare function executeShellActions(agent: Agent, actions: ToolRunShell[], runner: Runner, runContext: RunContext, customLogger?: Logger | undefined, toolErrorFormatter?: ToolErrorFormatter): Promise; export declare function executeApplyPatchOperations(agent: Agent, actions: ToolRunApplyPatch[], runner: Runner, runContext: RunContext, customLogger?: Logger | undefined, toolErrorFormatter?: ToolErrorFormatter): Promise; /** * Collects approval interruptions from tool execution results and any additional * RunItems (e.g., shell/apply_patch approval placeholders). */ export declare function collectInterruptions(toolResults: FunctionToolResult[], additionalItems?: RunItem[]): RunToolApprovalItem[];