/** * @author Kuitos * @homepage https://github.com/kuitos/ * @since 2017-10-12 */ import { AxiosAdapter, AxiosPromise } from 'axios'; declare module 'axios' { interface AxiosRequestConfig { forceUpdate?: boolean; cache?: boolean | ICacheLike; } } export interface ICacheLike { get(key: string): T | undefined; set(key: string, value: T, maxAge?: number): boolean; del(key: string): void; } export declare type Options = { enabledByDefault?: boolean; cacheFlag?: string; defaultCache?: ICacheLike; }; export default function cacheAdapterEnhancer(adapter: AxiosAdapter, options?: Options): AxiosAdapter;