/** * Token-bucket rate limiter. * * Limits the number of send operations per account within a time window. * Defaults to 10 sends per 60-second window. */ export default class RateLimiter { private buckets; private readonly maxTokens; private readonly windowMs; constructor(maxPerMinute?: number); /** * Try to consume a token for the given account. * @returns `true` if allowed, `false` if rate-limited. */ tryConsume(accountName: string): boolean; /** * Get remaining tokens for an account. */ remaining(accountName: string): number; } //# sourceMappingURL=rate-limiter.d.ts.map