/** * Usage accounting — token/cost stats shared across the runner (producer), * runtime (aggregation), store (persistence), and render (display). * * Kept in its own leaf module so persistence and TUI don't have to depend on * the process-spawning layer (`runner.ts`) just for these types/helpers. */ export interface UsageStats { input: number; output: number; cacheRead: number; cacheWrite: number; cost: number; contextTokens: number; turns: number; } export declare function emptyUsage(): UsageStats; /** Sum numeric usage fields across runs. `contextTokens` is intentionally excluded (it is a point-in-time gauge, not additive). */ export declare function aggregateUsage(usages: UsageStats[]): UsageStats; export declare function formatTokens(count: number): string; //# sourceMappingURL=usage.d.ts.map