/** * ANTRI Security & Rate Limiting Engine * Protects against API exhaustion, denial of service, and automated abuse. */ export interface RateLimitBucket { tokens: number; lastRefill: number; } export interface RateLimitConfig { maxTokens: number; refillRatePerMinute: number; } export declare class RateLimiter { private static buckets; private static readonly RULES; /** * Checks whether a request should be allowed or throttled * @param identifier User ID, IP, or session token * @param actionType 'chat' | 'tools' | 'sandbox' | 'sync' | 'auth' */ static checkLimit(identifier: string, actionType?: 'chat' | 'tools' | 'sandbox' | 'sync' | 'auth'): { allowed: boolean; remaining: number; retryAfterSeconds?: number; }; /** * Resets rate limits for a user (used for testing or admin override) */ static reset(identifier: string): void; } //# sourceMappingURL=rateLimiter.d.ts.map