import { Ref, ComputedRef } from 'vue';
import { CurringConfigFun, CurringConfig, CurringRes } from './type';

/**  第一层（接入层）：接收封装后的axios实例，第二个参数是全局请求配置，配置项参考AxiosRequestConfig */
declare const curringHttp: (axiosInstance: any, globalConfig?: CurringConfigFun) => {
    get: (url: string | Ref | ComputedRef, urlConfig?: CurringConfigFun) => (payload?: any, payloadConfig?: CurringConfig) => CurringRes;
    post: (url: string | Ref | ComputedRef, urlConfig?: CurringConfigFun) => (payload?: any, payloadConfig?: CurringConfig) => CurringRes;
    put: (url: string | Ref | ComputedRef, urlConfig?: CurringConfigFun) => (payload?: any, payloadConfig?: CurringConfig) => CurringRes;
    patch: (url: string | Ref | ComputedRef, urlConfig?: CurringConfigFun) => (payload?: any, payloadConfig?: CurringConfig) => CurringRes;
    delete: (url: string | Ref | ComputedRef, urlConfig?: CurringConfigFun) => (payload?: any, payloadConfig?: CurringConfig) => CurringRes;
};
export { curringHttp };
