import { IHttpResponse } from "./IHttpResponse";
import { MsFile } from "../../model/MsFile";
import { RequestBodyType } from "../../enums/RequestBodyType";
import { HttpMethodType } from "../../enums/HttpMethodType";
import { ServiceClientConfig } from "../../config/ServiceClientConfig";
export declare class SimpleHttpUtil {
    private readonly axios;
    private readonly serviceClientConfig;
    constructor(serviceClientConfig: ServiceClientConfig);
    /**
     * @desc get请求
     * @param {String} path 请求api路径
     * @param {Object} data 参数对象
     * @param {Object} config 局部配置 {headers: {'X-Custom-Header': 'foobar'}}
     */
    get(url: string, data?: object, headers?: object): Promise<IHttpResponse>;
    /**
     * @desc post表单请求
     * @param {String} path 请求api路径
     * @param {Object} data 参数对象
     * @param {Object} config 局部配置 {headers: {'X-Custom-Header': 'foobar'}}
     */
    postForm(url: string, data?: object, headers?: object): Promise<IHttpResponse>;
    /**
     * @desc post表单请求
     * @param {String} path 请求api路径
     * @param {Object} data 参数对象
     * @param {Object} config 局部配置 {headers: {'X-Custom-Header': 'foobar'}}
     */
    postJson(url: string, params?: object, bodyObj?: object, headers?: object): Promise<IHttpResponse>;
    call(method: HttpMethodType, url: string, params: {}, bodyObj: object, headers: {}, bodyType: RequestBodyType): Promise<IHttpResponse>;
    /**
     * 文件上传
     * @param url
     * @param files
     * @param headers
     * @param config
     */
    uploadFiles(url: string, data: object | undefined, files: Array<MsFile>, headers?: object): Promise<IHttpResponse<any>>;
}
