/** * Normalized view of an account's `usage-cache.json` (written by Claude Code * itself, shared by the terminal and the IDE extension). Percentages are 0-100; * reset times and fetchedAt are epoch ms; retryAfter is non-null when the * account is actively rate-limited. */ export interface UsageSnapshot { fiveHourPct: number | null; sevenDayPct: number | null; fiveHourResetsAt: number | null; sevenDayResetsAt: number | null; retryAfter: number | null; fetchedAt: number | null; stale: boolean; } export declare function parseUsageCache(text: string): UsageSnapshot; /** Read and parse the usage cache for a config dir, or null if absent/unreadable. */ export declare function readUsageForDir(configDir: string): UsageSnapshot | null;