import { AxiosRequestConfig, AxiosResponse } from 'axios'; export interface RequestProxyType { get(url: string, config?: AxiosRequestConfig, customConfig?: CustomConfigType): Promise; post(url: string, config?: AxiosRequestConfig, customConfig?: CustomConfigType): Promise; delete(url: string, config?: AxiosRequestConfig, customConfig?: CustomConfigType): Promise; put(url: string, config?: AxiosRequestConfig, customConfig?: CustomConfigType): Promise; patch(url: string, config?: AxiosRequestConfig, customConfig?: CustomConfigType): Promise; } export interface CustomConfigType { isNeedToken?: boolean; isNeedLoading?: boolean; isNeedShowError?: boolean; } export interface RequestType { request(config: AxiosRequestConfig): Promise; }