import type { Turn } from "@best-agent/protocol";
import type { AgentProfile } from "../../agent/profile-registry.js";
import type { PreparedToolInvocation, ToolExecutionResultMetadata } from "../../tool/registry.js";
import type { ToolResumeContext } from "../checkpoint-codec.js";
import type { PersistTerminalToolFailure, ToolExecutionRuntime, ToolShellDebugBase } from "./tool-execution-types.js";
export declare function finalizeExecutedToolResult(input: {
    output: string;
    persistTerminalToolFailure: PersistTerminalToolFailure;
    prepared: PreparedToolInvocation;
    preparedToolResumeContext: ToolResumeContext;
    profile: AgentProfile;
    resultMetadata?: ToolExecutionResultMetadata;
    runtime: ToolExecutionRuntime;
    shellDebugBase?: ToolShellDebugBase;
    toolCallId: ToolResumeContext["toolCallId"];
    toolName: string;
    toolStartedAt: number;
    turn: Turn;
}): Promise<string>;
//# sourceMappingURL=tool-execution-finalizer.d.ts.map