import { AxiosResponse, AxiosRequestConfig } from 'axios';
/**
 * 基于Axios框架实现的Http工具
 * @author wufl2019@qq.com
 * @date 2020-06-23
 */
export declare class HttpClient {
    private readonly axios;
    constructor(_timeout?: number);
    /**
     * @desc get请求
     * @param {String} path 请求api路径
     * @param {any} data 参数对象
     * @param {any} config 局部配置 {headers: {'X-Custom-Header': 'foobar'}}
     */
    get(url: string, data?: any, config?: any): Promise<AxiosResponse>;
    /**
     * @desc post表单请求
     * @param {String} path 请求api路径
     * @param {any} data 参数对象
     * @param {any} config 局部配置 {headers: {'X-Custom-Header': 'foobar'}}
     */
    postForm(url: string, data?: any, config?: any): Promise<AxiosResponse>;
    /**
     * @desc post JSON
     * @param {String} path 请求api路径
     * @param {any} data 参数对象
     * @param {any} config 局部配置 {headers: {'X-Custom-Header': 'foobar'}}
     */
    postJson(url: string, params?: any, bodyObj?: any, config?: any): Promise<AxiosResponse>;
    /**
     * @desc post
     * @param {String} path 请求api路径
     * @param {any} data 参数对象
     * @param {any} config 局部配置 {headers: {'X-Custom-Header': 'foobar'}}
     */
    post(url: string, data?: any, config?: any): Promise<AxiosResponse>;
    /**
     * @desc request
     * @param {any} config AxiosRequestConfig
     */
    request(config?: AxiosRequestConfig): Promise<AxiosResponse>;
}
