import { EventEmitter } from 'events'; import { ToolCall } from '../types/index.js'; interface ToolExecutionEvent { toolCall: ToolCall; status: 'started' | 'completed' | 'failed' | 'confirmation-needed'; result?: any; error?: string; confirmationType?: 'edit' | 'bash'; confirmationData?: any; } interface ConfirmationRequest { toolCallId: string; type: 'edit' | 'bash'; data: any; } declare class ToolExecutionService extends EventEmitter { private confirmationResolvers; private pendingConfirmations; emitToolExecution(event: ToolExecutionEvent): void; requestConfirmation(toolCallId: string, type: 'edit' | 'bash', data: any): Promise; resolveConfirmation(toolCallId: string, approved: boolean): void; rejectConfirmation(toolCallId: string, error: any): void; getPendingConfirmation(toolCallId: string): ConfirmationRequest | undefined; } export declare const toolExecutionService: ToolExecutionService; export {}; //# sourceMappingURL=tool-execution.d.ts.map