import type { IncomingMessage } from "node:http"; export declare class FixedWindowRateLimiter { private readonly limit; private readonly windowMs; private readonly maxEntries; private hits; constructor(limit: number, windowMs?: number, maxEntries?: number); get size(): number; allow(key: string, now?: number): boolean; private prune; } export declare function clientIp(req: IncomingMessage, trustProxy: boolean): string;