/** * Interpolated sliding-window rate limiter. * * Approximates a true sliding window using two fixed buckets — the current * window's counter plus a weighted slice of the previous window's counter, * where the weight is the fraction of the previous window still overlapping * with "now". This costs the same as fixed (~1 write) but eliminates the * boundary burst that plagues fixed windows. * * Accuracy: ~1% off ground truth in the worst case (Cloudflare / Kong / * Envoy all ship this variant as their default). For strict per-user API * quotas this is normally within a few requests of the true count. * * @param {import('../index.js').WindowLimiterConfig} config * @returns {import('../index.js').Limiter} */ export function sliding(config: import("../index.js").WindowLimiterConfig): import("../index.js").Limiter;