/** * Creates a new rate limiter. * * @typeparam TKey - The type of the key. * @param windowSizeMs - The length of the time window in milliseconds. * * @returns The rate limiter. **/ export declare function newRateLimiter(windowSizeMs: number): { clearStale: (all?: boolean) => void; isAllowed: (key: string) => boolean; cacheSize: () => number; }; //# sourceMappingURL=rate-limiter.d.ts.map