/** * Rate Limit Metrics Manager - SMI-730, SMI-1189 * * Metrics tracking and management for rate limiting. */ import type { RateLimitMetrics } from './types.js'; /** * Manages rate limit metrics with bounds checking and cleanup */ export declare class MetricsManager { private readonly metrics; private cleanupInterval; private readonly debug; private readonly log; constructor(debug?: boolean, log?: { debug: (msg: string) => void; }); /** * Start periodic cleanup of stale metrics */ startCleanup(): void; /** * Stop metrics cleanup */ stopCleanup(): void; /** * Clean up metrics older than METRICS_TTL_MS */ private cleanupStaleMetrics; /** * Update metrics for a key with bounds checking */ update(key: string, allowed: boolean, error?: boolean): void; /** * Get metrics for a specific key */ get(key: string): RateLimitMetrics | undefined; /** * Get all metrics */ getAll(): Map; /** * Delete metrics for a key */ delete(key: string): void; /** * Clear all metrics */ clear(): void; /** * Dispose of resources */ dispose(): void; } //# sourceMappingURL=metrics-manager.d.ts.map