import type { Turn } from "@best-agent/protocol";
import type { ToolExecutionResultMetadata } from "../../tool/registry.js";
import type { ToolExecutionRuntime } from "./tool-execution-types.js";
import type { PersistTerminalToolFailure, ToolShellDebugBase } from "./tool-execution-types.js";
export declare function createToolFailurePersistence(input: {
    getToolResultMetadata: () => ToolExecutionResultMetadata | undefined;
    runtime: ToolExecutionRuntime;
    shellDebugBase?: ToolShellDebugBase;
    toolName: string;
    turn: Turn;
}): PersistTerminalToolFailure;
//# sourceMappingURL=tool-failure-persistence.d.ts.map