import { AxiosRequestConfig, AxiosResponse } from 'axios'; export interface RequestInterceptors { requestInterceptor?: (config: AxiosRequestConfig) => AxiosRequestConfig; requestInterceptorCatch?: (error: Error) => Error; responseInterceptor?: (res: T) => T; responseInterceptorCatch?: (error: Error) => Error; } export interface RequestConfig extends AxiosRequestConfig { interceptors?: RequestInterceptors; showLoading?: boolean; }