import type { AxiosRequestConfig, AxiosResponse } from "axios"; export interface HYInterceptors { requestSuccessFn?: (config: AxiosRequestConfig) => AxiosRequestConfig; requestFailureFn?: (err: any) => any; responseSuccessFn?: (res: T) => Promise; responseFailureFn?: (err: any) => any; } export interface HYRequestConfig extends AxiosRequestConfig { interceptors?: HYInterceptors; }