import type { BatchCostEvidence, BatchProviderUsage, DecisionBatchReceipt, EstimatedTokenAllocation, PriceCatalogRecord } from './types.js'; export interface BatchAccountingTotals { usage: BatchProviderUsage; cost: { knownAmountMicros: number; unknownAttemptCount: number; conservativeUpperBoundMicros: number | null; }; } /** Adds every dispatched attempt once, including failed, retry, and fallback consumption. */ export declare function batchAccountingTotals(receipt: DecisionBatchReceipt): BatchAccountingTotals; /** Admission consumes receipt-level evidence only; per-answer estimates are deliberately ignored. */ export declare function batchEnforcementCostMicros(receipt: DecisionBatchReceipt): number | null; /** Exact integer arithmetic; USD 0.042/million is 42,000 micros/million. */ export declare function deriveCost(usage: BatchProviderUsage, catalog: PriceCatalogRecord): BatchCostEvidence; /** Largest remainder makes integer allocations deterministic and exactly reconciling. */ export declare function allocateEstimatedUsage(questionIds: readonly string[], total: BatchProviderUsage, weights?: Readonly>): EstimatedTokenAllocation[]; //# sourceMappingURL=accounting.d.ts.map