/** * Minimal in-memory fixed-window rate limiter for the optional HTTP edge. * * The hosted Glitch facade is the authoritative limiter; this is a cheap * additional guard for self-hosted HTTP proxies. Keyed per credential (or IP) * so one noisy caller cannot exhaust the process. Disabled when limit <= 0. */ export interface RateLimitResult { readonly allowed: boolean; readonly retryAfterSeconds: number; } export interface RateLimiter { check(key: string): RateLimitResult; } export declare function createFixedWindowRateLimiter(limitPerMinute: number, now?: () => number): RateLimiter;