/** * Bursty rate limiter that wraps two underlying limiters. The first is the * steady-state limiter; if it rejects, the bursty limiter is consulted * to grant short-term burst capacity. Useful for "5 req/sec normally, * but allow occasional bursts of up to 15 within 10 sec" patterns. * * Ported to TypeScript from upstream BurstyRateLimiter. See * `THIRDPARTY-LICENSES.md` for attribution. */ import type { AbstractLimiter } from './abstract'; import { LimiterResult } from './types'; import type { IRateLimiterRes, LimiterConsumeOptions } from './types'; export declare class BurstyLimiter { private readonly _steady; private readonly _burst; constructor(_steady: AbstractLimiter, _burst: AbstractLimiter); consume(key: string, pointsToConsume?: number, options?: LimiterConsumeOptions): Promise; get(key: string): Promise; get points(): number; } //# sourceMappingURL=bursty.d.ts.map