/** * @author Kuitos * @homepage https://github.com/kuitos/ * @since 2017-10-11 */ import { AxiosAdapter, AxiosPromise, AxiosRequestConfig } from 'axios'; import { ICacheLike } from './utils/isCacheLike'; declare module 'axios' { interface AxiosRequestConfig { threshold?: number; } } export type RecordedCache = { timestamp: number; value?: AxiosPromise; }; export type Options = { threshold?: number; cache?: ICacheLike; }; export default function throttleAdapterEnhancer(adapter: NonNullable, options?: Options): AxiosAdapter;