import { AxiosRequestConfig } from 'axios'; import { CustomConfigType } from './types'; /***************************************************** 传递axios 中间件拦截 目前用于web端 *********************************************/ export declare const webRequestInterceptor: () => Promise; export declare const fetchCache: (apiMiddlewareContext: any) => Promise; export declare const setCache: (apiMiddlewareContext: any) => Promise<"" | undefined>; export declare const requestInterceptor: (axiosInstance: any, delList?: string[] | undefined) => Promise; /**************************************************** 暴露和axios 一样的方法 需要替换引用此库axios 目前未用于实战 *********************************************/ export declare const interfaceType: import("axios").AxiosStatic; export declare const create: (config: AxiosRequestConfig, delList?: string[] | undefined) => any; /** * 设置axios头的accessToken */ export declare const setAccessToken: (accessToken: any) => void; export declare const setPassPort: (passport: any) => void; export declare const setRequestAuthAppId: (RequestAuthAppId: any) => void; export declare const httGet: (config?: AxiosRequestConfig, customConfig?: CustomConfigType) => Promise; export declare const httPost: (config?: AxiosRequestConfig, customConfig?: CustomConfigType) => Promise; export declare const httPut: (config?: AxiosRequestConfig, customConfig?: CustomConfigType) => Promise; export declare const requestCom: (config?: AxiosRequestConfig, customConfig?: CustomConfigType) => Promise; declare const CjetAxios: { create: (config: AxiosRequestConfig, delList?: string[] | undefined) => any; httGet: (config?: AxiosRequestConfig, customConfig?: CustomConfigType) => Promise; httPost: (config?: AxiosRequestConfig, customConfig?: CustomConfigType) => Promise; httPut: (config?: AxiosRequestConfig, customConfig?: CustomConfigType) => Promise; requestHttp: (config: AxiosRequestConfig, customConfig?: CustomConfigType | undefined) => Promise; requestCom: (config?: AxiosRequestConfig, customConfig?: CustomConfigType) => Promise; fetchCache: (apiMiddlewareContext: any) => Promise; setCache: (apiMiddlewareContext: any) => Promise<"" | undefined>; requestInterceptor: (axiosInstance: any, delList?: string[] | undefined) => Promise; webRequestInterceptor: () => Promise; }; export default CjetAxios;