import type { QueueEntryLimitReachedBehavior } from './QueueEntry'; export interface RateLimiterRequestOptions { limitReachedBehavior?: QueueEntryLimitReachedBehavior; } export interface RateLimiter { request: (req: Req, options?: RateLimiterRequestOptions) => Promise; clear: () => void; pause: () => void; resume: () => void; destroy?: () => void; }