import type { PlatformAdapter } from '../../platform/index.js'; export interface ThrottlePersistence { save: (state: { resetsAt: number; activatedAt: number; modes: string[]; } | null) => Promise; load: () => Promise<{ resetsAt: number; activatedAt: number; modes?: string[]; } | null>; } declare function initRateLimitThrottle(adapter: PlatformAdapter, persistence: ThrottlePersistence, onResume?: () => void): Promise; interface RateLimitInfo { status?: string; resetsAt?: number; rateLimitType?: string; utilization?: number; isUsingOverage?: boolean; surpassedThreshold?: number; } declare function handleRateLimitEvent(info: RateLimitInfo, mode?: string): Promise; declare function isThrottled(): boolean; declare function isModeRateLimited(mode: string): boolean; declare function getThrottleState(): { isThrottled: boolean; resetsAt: number | null; rateLimitedModes: string[]; }; declare function _testReset(): void; export { initRateLimitThrottle, handleRateLimitEvent, isThrottled, isModeRateLimited, getThrottleState, _testReset };