import type { ProviderConfig, RunPhaseName } from "@best-agent/protocol";
import type { ProviderCorrectionTrace } from "../checkpoint-codec.js";
import type { ProviderTurnInvokeContext } from "./provider-turn-budget.js";
import type { RequiredToolConstraint } from "./tool-constraint-types.js";
export declare function buildProviderToolLoopContext(context: ProviderTurnInvokeContext, input: {
    correctionTrace?: ProviderCorrectionTrace;
    escalationLevel?: number;
    requiredToolConstraint?: RequiredToolConstraint;
    routeConfigOverride?: ProviderConfig;
    toolStepCount?: number;
}): ProviderTurnInvokeContext;
export declare function isProviderToolLoopRoutingDowngradeEligible(phaseName?: RunPhaseName): boolean;
//# sourceMappingURL=provider-tool-loop-context.d.ts.map