interface TokenUsage { input_tokens?: number; output_tokens?: number; cache_read_input_tokens?: number; cache_creation_input_tokens?: number; total_tokens?: number; cache_creation?: { ephemeral_5m_input_tokens?: number; ephemeral_1h_input_tokens?: number; }; } /** * Gets accurate token count from JSONL transcript file * Used by both statusline and session selector for consistency */ export declare function getTokenCount(transcriptPath: string): Promise; /** * Gets the current token count from the last message in JSONL transcript * Used specifically for statusline to show current context window usage */ export declare function getCurrentTokenCount(transcriptPath: string): Promise; /** * Calculate cumulative total from usage data * Used by both getTokenCount and TUI for consistency */ export declare function calculateCumulativeTotal(usage: TokenUsage): number; /** * Calculate conversation growth (input + output tokens only) * This represents actual context window consumption, not caching efficiency */ export declare function calculateConversationGrowth(usage: TokenUsage): number; export declare function calculateRemainingCapacity(currentTotal: number, contextWindowLimit?: number): { remaining: number; percentage: number; isNearLimit: boolean; }; /** * Rough estimation of tokens from content string or size * Using simple heuristic from config (consistent across codebase) */ export declare function estimateTokensFromContent(content: string): number; export declare function estimateTokensFromContent(size: number): number; export {}; //# sourceMappingURL=token-calculator.d.ts.map