UNPKG

recoder-code

Version:

🚀 AI-powered development platform - Chat with 32+ models, build projects, automate workflows. Free models included!

19 lines (18 loc) • 449 B
/** * Rate Limiting Service */ export declare class RateLimitService { private redis; checkRateLimit(key: string, limit: number, window: number): Promise<{ allowed: boolean; remaining: number; }>; getUserRateLimit(userId: string): Promise<{ allowed: boolean; remaining: number; }>; getApiKeyRateLimit(apiKey: string): Promise<{ allowed: boolean; remaining: number; }>; }