/* * node-fast-ratelimit * * Copyright 2025, Valerian Saliou * Author: Valerian Saliou */ export interface FastRateLimitOptions { threshold: number; ttl: number; } export class FastRateLimit { constructor(options: FastRateLimitOptions); consume(namespace: string): Promise; consumeSync(namespace: string): boolean; consumeCount(namespace: string): Promise; consumeCountSync(namespace: string): number; hasToken(namespace: string): Promise; hasTokenSync(namespace: string): boolean; }