import { AxiosInstance } from 'axios';
import { RequestConfig } from './interface';
declare const service: AxiosInstance;
/**
 * 四种请求方式
 * @param url       接口地址
 * @param data      接口参数
 * @param config    接口所需其余配置参数
 */
export declare const get: <R>(req: RequestConfig) => Promise<R>;
export declare const post: <R>(req: RequestConfig) => Promise<R>;
export declare const put: <R>(req: RequestConfig) => Promise<R>;
export declare const del: <R>(req: RequestConfig) => Promise<R>;
export default service;
