/** * Fixed-window rate limiter. * * Every window boundary resets the counter to zero. Cheap (one INCR per * request) but permits burst at boundary edges — a caller can spend the * whole budget in the last second of one window and the whole budget in * the first second of the next. Prefer sliding for user-facing APIs; fixed * is fine for "cheap-and-lax" scenarios like debounce or dedup. * * @param {import('../index.js').WindowLimiterConfig} config * @returns {import('../index.js').Limiter} */ export function fixed(config: import("../index.js").WindowLimiterConfig): import("../index.js").Limiter;