/** * Usage of a rolling rate-limit window, as returned by Claude Code's own * `/usage` (endpoint GET /api/oauth/usage — a plain GET, it spends no quota). */ export interface Window { /** 0–100. */ usedPercentage: number; /** Unix epoch seconds when the window resets, or null. */ resetsAt: number | null; } export interface Usage { fiveHour: Window | null; sevenDay: Window | null; /** When this snapshot was fetched (ms since epoch). */ fetchedAt: number; } export declare function parseWindow(w: any): Window | null; /** * Fetches the current 5-hour and 7-day usage. Cached for 60s and * de-duplicated across concurrent callers, so polling is cheap. * Returns null if no token is available or the request fails. */ export declare function getUsage(): Promise;