/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import type { Config, AnsiOutput } from '../index.js'; import type { CompletedToolCall, ToolCall } from './types.js'; export interface ToolExecutionContext { call: ToolCall; signal: AbortSignal; outputUpdateHandler?: (callId: string, output: string | AnsiOutput) => void; onUpdateToolCall: (updatedCall: ToolCall) => void; } export declare class ToolExecutor { private readonly config; constructor(config: Config); execute(context: ToolExecutionContext): Promise; private createCancelledResult; private createSuccessResult; private createErrorResult; private createErrorResponse; }