import { type ProcessPort } from '../platform/process.js'; export type { UsageCache } from './usage-cache.js'; export { isUsageCacheStale, parseRetryAfter, readUsageCache, readUsageCacheFor, readUsageCacheForAccount, shouldTriggerUsageRefreshAfterSwitch, } from './usage-cache.js'; export { fetchUsage, fetchUsageCached } from './usage-fetch.js'; export { getAccessTokenFromKeychain, refreshUsageForAccount } from './usage-account.js'; export { parseUsageHeadersIfPresent, updateUsageCacheFromHeaders } from './usage-headers.js'; /** * Spawn a fully-detached background process that refreshes the usage cache, * then exits. Used by the statusline so the foreground call can return * immediately — Claude Code renders the line as soon as we return, and the * next redraw picks up the freshly-written cache. */ export declare function triggerBackgroundUsageRefresh(opts?: { accountsDirPath?: string; process?: ProcessPort; }): void;