/** * Tool execution handler — extracted from Agent class for testability. * Handles batch tool execution, confirmation flow, and post-execution * pipeline/session/event emission. */ import type { ToolResultBlock, ToolUseBlock } from '../types/blocks.js'; import type { Tool } from '../types/tool.js'; import type { AgentInternals } from './agent-internals.js'; export interface AgentToolHandler { executeTools(toolUses: ToolUseBlock[]): Promise; executeSingleWithDecision(tool: Tool, use: { id: string; name: string; input: unknown; }): Promise<{ result: ToolResultBlock; durationMs: number; }>; } export declare function createAgentToolHandler(a: AgentInternals): AgentToolHandler; //# sourceMappingURL=agent-tools.d.ts.map