import type { RateLimiterOptions, RateLimiterHandle } from '../types.js'; /** * Creates a token-bucket rate limiter policy that limits how many times * the wrapped operation can be executed within a time interval. * * Returns an object with `execute` (the policy function) and `handle` * (an interface to inspect / reset the bucket). * * @example * ```ts * const rl = rateLimiter({ tokensPerInterval: 5, interval: 1000 }); * const result = await rl.execute(() => callApi()); * ``` */ export declare function rateLimiter(options?: RateLimiterOptions): { execute: (fn: () => Promise) => Promise; handle: RateLimiterHandle; }; //# sourceMappingURL=rate-limiter.d.ts.map