/** * Action log + cooldown tracker. Persisted to ~/.lockedout/usage.json. * * Caps: * - First 14 days post-install: 50 actions per UTC day (warm-up period) * - Otherwise: 40 per UTC day (configurable via LOCKEDOUT_DAILY_CAP env var) * * Cooldown: * - Set on first hard signal (RateLimitError or AuthenticationError) * - Default 30 min; refuses scrapes until expired */ export interface UsageRecord { ts: string; kind: string; target?: string; } export interface UsageState { first_run_utc: string; actions: UsageRecord[]; cooldown_until: string | null; } export declare function loadUsage(): UsageState; export declare function saveUsage(state: UsageState): void; export interface QuotaCheckResult { blocked: boolean; reason?: string; count: number; cap: number; is_warmup: boolean; } /** Returns whether a counted action would exceed the daily cap. */ export declare function checkDailyQuota(opts?: { force?: boolean; }): QuotaCheckResult; export declare function recordAction(kind: string, target?: string): void; export declare function setCooldown(minutes?: number): void; export declare function clearCooldown(): void; export declare function getCooldownRemainingMs(): number; export declare function summarizeUsage(): { first_run_utc: string; today_count: number; cap: number; is_warmup: boolean; cooldown_remaining_minutes: number; }; //# sourceMappingURL=usage.d.ts.map