import type { SandboxProfile, Turn } from "@best-agent/protocol";
import { type PreparedToolInvocation, type RuntimeToolDefinition, type ToolExecutionResultMetadata } from "../../tool/registry.js";
import type { ToolResumeContext } from "../checkpoint-codec.js";
import type { ExecuteToolInvocationOptions } from "../agent-runtime-tool-execution-types.js";
import type { ToolExecutionRuntime } from "./tool-execution-types.js";
import type { PersistTerminalToolFailure, ToolShellDebugBase } from "./tool-execution-types.js";
export declare function executePreparedTool(input: {
    executionSandboxProfile?: SandboxProfile;
    options: ExecuteToolInvocationOptions;
    persistTerminalToolFailure: PersistTerminalToolFailure;
    prepared: PreparedToolInvocation;
    preparedToolResumeContext: ToolResumeContext;
    runtime: ToolExecutionRuntime;
    setToolResultMetadata: (metadata: ToolExecutionResultMetadata) => void;
    shellDebugBase?: ToolShellDebugBase;
    toolCallId: ToolResumeContext["toolCallId"];
    toolDefinition: RuntimeToolDefinition;
    toolName: string;
    turn: Turn;
    webSearchBudget?: {
        currentCount: number;
        limit: number;
        scope: "workflow";
    };
}): Promise<{
    output: string;
    terminalFailureOutput?: boolean;
    toolStartedAt: number;
}>;
//# sourceMappingURL=prepared-tool-execution.d.ts.map