import { AxiosRequestConfig, AxiosResponse } from 'axios'; import { Router } from 'vue-router'; export declare const initRequest: (router?: Router) => void; declare const useRequest: () => { request: (opts: AxiosRequestConfig) => Promise; get: , PM = any>(url: string, params?: PM, opts?: AxiosRequestConfig) => Promise; post: , PM_1 = any>(url: string, data?: T_1, params?: PM_1, opts?: AxiosRequestConfig) => Promise; put: , PM_2 = any>(url: string, data?: T_2, params?: PM_2, opts?: AxiosRequestConfig) => Promise; del: , PM_3 = any>(url: string, data?: T_3, params?: PM_3, opts?: AxiosRequestConfig) => Promise; getList: (url: string, params?: ListRequestParams, opts?: AxiosRequestConfig) => Promise>; getAll: (url: string, opts?: AxiosRequestConfig) => Promise>; postList: , PM_4 = any>(url: string, data?: T_6[], params?: PM_4, opts?: AxiosRequestConfig) => Promise; putList: (url: string, data?: BatchRequestPayloadWithJsonStringData, params?: PM_5, opts?: AxiosRequestConfig) => Promise; delList: (url: string, data?: BatchRequestPayload, params?: PM_6, opts?: AxiosRequestConfig) => Promise; requestRaw: (opts: AxiosRequestConfig) => Promise; getRaw: (url: string, params?: PM_7, opts?: AxiosRequestConfig) => Promise; }; export default useRequest;