/** * Rate limiter for update checks * Prevents excessive npm registry queries */ export interface RateLimitState { lastCheck: string; checksToday: number; date: string; packageVersions: Record; } export declare function loadState(): RateLimitState; export declare function saveState(state: RateLimitState): void; /** * Whether this is a CI run. CI systems set `CI` to `true`, `1` or other values, so any value * except empty, `0` or `false` counts (GitHub Actions sets CI=true). Matching only `true` let CI=1 runs check for updates and * install one (`npm install @claude-flow/cli@`) into the working directory mid-run. */ export declare function isCI(env?: NodeJS.ProcessEnv): boolean; export declare function shouldCheckForUpdates(intervalHours?: number): { allowed: boolean; reason?: string; }; export declare function recordCheck(packageVersions: Record): void; export declare function getCachedVersions(): Record; export declare function clearCache(): void; //# sourceMappingURL=rate-limiter.d.ts.map