import { I as ICacheLike } from '../utils-_ORP98vM.js'; import { b as XiorRequestConfig, a as XiorResponse, e as XiorPlugin } from '../types-BvXZzfqR.js'; type XiorPromise = Promise; type RecordedCache = { timestamp: number; value?: XiorPromise; }; type XiorThrottleOptions = { /** threshold in milliseconds, default: 1000ms */ threshold?: number; /** * check if we need enable throttle, default only `GET` method or`isGet: true` enable */ enableThrottle?: boolean | ((config?: XiorRequestConfig) => boolean); throttleCache?: ICacheLike; onThrottle?: (config: XiorRequestConfig) => void; /** max throttle numbers in LRU, default is 100 */ throttleItems?: number; /** Process the config before generating the key based on data/params. The config is a new object, not a request reference. */ normalizeParams?: (config: XiorRequestConfig) => XiorRequestConfig; }; /** @ts-ignore */ declare module 'xior' { interface XiorRequestConfig extends Omit { } } declare function xiorThrottlePlugin(options?: XiorThrottleOptions): XiorPlugin; export { RecordedCache, XiorThrottleOptions, xiorThrottlePlugin as default };