recoder-code
Version:
Complete AI-powered development platform with ML model training, plugin registry, real-time collaboration, monitoring, infrastructure automation, and enterprise deployment capabilities
19 lines (18 loc) • 449 B
TypeScript
/**
* 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;
}>;
}