/** * Context-overflow fallback cluster (SP-274, #143 partial): * `context_overflow_fallback` + shared escalation predicates. * * Behavior-preserving extraction from `RouterPipeline` behind the * `PipelineStage` / `RoutingContext` contract (SP-272). * * SP-095: after safe_default, escalate to the largest-fit model when * economical models cannot fit the current context. The exported predicate / * decision builder are shared with the orchestrator's pipeline-error * fallback path (`buildFallbackDecision`). */ import type { RoutingDecision } from '../types/index.js'; import type { PipelineStage, RoutingContext } from './pipeline-stage.js'; /** * True when the route should defer to context-overflow escalation: the * context_fit stage rejected every economical candidate (or a pin break * marked overflow earlier) and the request is not force-pinned. */ export declare function shouldAttemptContextOverflowFallback(context: RoutingContext): boolean; /** Build the overflow-escalation decision (or its no_fit terminal form). */ export declare function buildContextOverflowFallbackDecision(context: RoutingContext, elapsedMs: number): RoutingDecision; /** * SP-095 final stage: escalate to the largest-fit model when economical * models were context-rejected. Decides only when escalation applies. */ export declare function createContextOverflowFallbackStage(): PipelineStage; //# sourceMappingURL=context-overflow-fallback-stage.d.ts.map