/** * Lemma Cloud — Burst Rate Limiter * * Highly optimized, in-memory sliding window rate limiter. * Caps requests at 10 RPS per API Key. * Adds <50 microseconds overhead (0.05ms) to the critical path. */ export declare class BurstRateLimiter { private windows; private maxRequestsPerSecond; private windowSizeMs; constructor(maxRps?: number, windowSizeMs?: number); /** * Check if a request is allowed under the rate limit * @param keyId The unique identifier for the rate limit window (e.g. API key) */ check(keyId: string): { allowed: boolean; remaining: number; }; /** * Helper to manually clear a rate limit window (useful for unit tests) */ clear(keyId: string): void; } //# sourceMappingURL=BurstRateLimiter.d.ts.map