import { AxiosRequestConfig, AxiosResponse } from 'axios'; interface MyRequestIntercepts { requestHook?: (config: AxiosRequestConfig) => AxiosRequestConfig; requestHookCatch?: (error: any) => any; responseHook?: (config: T) => T; responseHookCatch?: (error: any) => any; } interface MyRequestConfig extends AxiosRequestConfig { intercepts?: MyRequestIntercepts; showLoading?: boolean; } export type { MyRequestConfig, MyRequestIntercepts };