/** * Global rate limiter for new IPNS name admissions. * Prevents abuse where a malicious client floods the * pinner with new names, exhausting capacity. * * Sliding window: tracks admission timestamps for the * last hour and rejects when the count exceeds the * configured limit. */ export declare const DEFAULT_MAX_NEW_NAMES_PER_HOUR = 100; export interface NewNameLimiter { /** Returns true if a new name can be admitted. */ tryAdmit(now?: number): boolean; /** Current limiter statistics. */ metrics(): { admitted: number; rejected: number; }; } export declare function createNewNameLimiter(maxPerHour: number): NewNameLimiter; //# sourceMappingURL=new-name-limiter.d.ts.map