import { Middleware } from "../types/http.js"; /** * Creates a rate limiting middleware to restrict the number of requests per client within a specified time window. * * @param maxRequests - The maximum number of requests allowed per client within the time window. Defaults to 100. * @param windowMs - The duration of the time window in milliseconds. Defaults to 15 minutes (15 * 60 * 1000 ms). * @returns A middleware function that enforces rate limiting based on client IP address. * * @throws {RateLimitError} If the client exceeds the allowed number of requests within the time window. * * @example * ```typescript * app.use(createRateLimiter(50, 10 * 60 * 1000)); // 50 requests per 10 minutes * ``` */ export declare const createRateLimiter: (maxRequests?: number, windowMs?: number) => Middleware; //# sourceMappingURL=rateLimiter.d.ts.map