import { AxiosRequestConfig, AxiosError, AxiosPromise, AxiosStatic, AxiosInstance, AxiosResponse } from 'axios' import LRUCache from 'lru-cache' interface ResponseValues { data: T loading: boolean error?: AxiosError response?: AxiosResponse } interface Options { manual?: boolean useCache?: boolean } interface RefetchOptions { useCache?: boolean } interface ConfigureOptions { axios?: AxiosInstance | AxiosStatic | any cache?: LRUCache } export default function useAxios( config: AxiosRequestConfig | string, options?: Options ): [ ResponseValues, (config?: AxiosRequestConfig, options?: RefetchOptions) => void ] export function loadCache(data: any[]): void export function serializeCache(): Promise export function configure(options: ConfigureOptions): void export function resetConfigure(): void // private export const __ssrPromises: Promise[]