export interface SessionTokenSummary { sessionId: string; model: string; models: string[]; pricingStatus: 'legacy-api-estimate' | 'unknown'; inputTokens: number; outputTokens: number; cacheWriteTokens: number; cacheReadTokens: number; cost: number | null; savings: number | null; timestamp: string; duration?: number; } export interface BillingContext { planType: 'api' | 'subscription'; monthlyAmount?: number; } export interface CostsSummaryPayload { totalCost: number | null; totalSavings: number | null; estimatedSubtotal: number; unpricedSessionCount: number; pricingAsOf: string; totalTokens: number; sessionCount: number; sessions: SessionTokenSummary[]; modelBreakdown: Record; billingContext: BillingContext; } export declare function getModelDisplayName(modelId: string): string; export declare class CostAggregator { private logDir; /** Level-1: per-file cache keyed by absolute file path */ private fileCache; /** Level-2: response cache — invalidated when file list/mtimes change */ private responseCache; private responseCacheHash; constructor(projectRoot: string); getTokenSummaries(limit?: number, billingConfig?: { planType?: string; monthlyAmount?: number; }): Promise; private extractTokensFromSession; /** Get session files sorted by mtime, with mtime included for cache comparison */ private getSessionFilesWithMtime; } //# sourceMappingURL=cost-aggregator.d.ts.map