import { type DecisionGraph, type GraphPlan } from './graph.js'; import { type GraphCeilings } from './graph-evidence.js'; type Usage = { attempts: number; tokens: number; costMicros: number; }; /** Synchronous reservations protect cumulative and per-stage capacity before adapter calls. * Host estimates must be conservative bounds, including unknown cost. This is not a * network dispatcher; callers retain Flow identities, transport and authorization. */ export declare class GraphBudgetLedger { private readonly graph; private readonly plan; private readonly clock; private total; private readonly stages; private readonly active; private readonly stageStarted; private cancelled; private readonly started; private readonly limits; constructor(graph: DecisionGraph, plan: GraphPlan, ceilings?: GraphCeilings[], clock?: () => number); cancel(): void; /** All-or-nothing synchronous batch claim; no remote call occurs before every * member passes stage, graph and concurrency capacity checks. */ reserveBatch(stage: number, estimates: readonly Usage[]): Array<(actual: Usage) => void>; reserve(stage: number, estimate: Usage): (actual: Usage) => void; private reserveAt; } export {}; //# sourceMappingURL=graph-budget.d.ts.map