/** * Session and run statistics. * * Deterministic aggregation of durable telemetry: cost/tokens by * role/provider/model, tool calls by tool, mutating calls, web/LSP/job usage, * subagent usage, retries, pivots, escalations, stall periods, criteria * completion, and finalization-reserve usage. Exposes machine-readable output; * never hides reasoning, secrets, or credentials. */ import { type BudgetLedger } from "./budget-ledger.js"; import { type CriteriaState } from "./criteria.js"; import type { RunStatistics } from "./types.js"; export interface StatsInput { runId: string; ledger: BudgetLedger; criteria?: CriteriaState; webSearches?: number; webFetches?: number; lspRequests?: number; jobStarts?: number; subagentRuns?: number; retryCount?: number; pivotCount?: number; escalationCount?: number; stallPeriods?: number; finalizationReserveUsed?: number; } export declare function deriveRunStatistics(input: StatsInput): RunStatistics; export declare function resourcesUsage(ledger: BudgetLedger): Record; //# sourceMappingURL=stats.d.ts.map