/** * Rate Limiting Middleware for MCP Gateway * * Implements SEC-04: MCP Gateway Rate Limiting * - Enforces 120 requests/minute per API key (configurable) * - In-memory Map-based implementation (no Redis dependency) * - Cleans up expired entries to prevent memory leaks * - Returns 429 with Retry-After header on limit exceeded * * Implements SEC-06: API Key Logging Restrictions * - Never logs full API key value * - Uses first 8 chars for identification */ import type { Request, Response, NextFunction } from "express"; /** * Rate limiting middleware */ export declare function rateLimitMiddleware(req: Request, res: Response, next: NextFunction): void; //# sourceMappingURL=rate-limit.d.ts.map