import type { ProviderConfig, ProviderTurnActionPolicy, Turn } from "@best-agent/protocol";
import type { AgentProfile } from "../../agent/profile-registry.js";
import type { PromptDeliverableFailure } from "../../prompt/runtime-prompts.js";
import type { CompletedProviderToolCall, ProviderCorrectionTrace, ToolOutputCheckpointPayload, ToolResumeContext } from "../checkpoint-codec.js";
import type { ProviderReplayRepairRuntime } from "./provider-replay-context.js";
import type { ProviderTurnBudget } from "./provider-turn-budget.js";
import { appendRuntimeObservation, type RuntimeObservation } from "./runtime-observation.js";
import type { RequiredToolConstraint } from "./tool-constraint-types.js";
export type ReplayToolOutputRepairPayload = ToolResumeContext & Partial<Pick<ToolOutputCheckpointPayload, "toolEnvelope" | "toolInputStableDigest" | "toolOutput" | "toolResultItem">>;
export declare function repairReplayToolOutputWithObservation(input: {
    completedToolCalls: CompletedProviderToolCall[];
    fixedReplayRoute: boolean;
    payload: ReplayToolOutputRepairPayload;
    repairActionPolicyOverride?: ProviderTurnActionPolicy;
    repairCode: ProviderCorrectionTrace["code"];
    repairMessages: ReturnType<typeof appendRuntimeObservation>;
    repairObservation: RuntimeObservation;
    repairRouteConfig: ProviderConfig;
    responseRepairDeliverableFailures?: PromptDeliverableFailure[];
    replayProfile: AgentProfile;
    replayProviderTurnBudget: ProviderTurnBudget;
    requiresDeliverableAssertion?: boolean;
    suppressStructuredControls?: boolean;
    runtime: ProviderReplayRepairRuntime;
    turn: Turn;
    unresolvedRequiredToolConstraint?: RequiredToolConstraint;
}): Promise<string>;
//# sourceMappingURL=provider-replay-tool-output-repair-runner.d.ts.map