import { AxiosAdapter, AxiosInstance, AxiosPromise, AxiosRequestConfig } from 'axios'; export interface ProcessEnv { [key: string]: string | undefined; } /** * 配置axios */ interface CustomRequestConfig extends AxiosRequestConfig { onLogin?: (code: string) => void; report?: boolean; } interface CustomAxiosInstance extends AxiosInstance { request(config: CustomRequestConfig): AxiosPromise; } export declare const http: CustomAxiosInstance; declare const httpCacheAdapter: (page: string, key: string, hour?: number) => AxiosAdapter; export { httpCacheAdapter };