import { DataOutput } from "@/model/DataOutput";
import { CoreConfig } from "@/model/CoreConfig";
declare class ApiService {
    /**
     * @description: 获取全局配置
     * @author ChenRui
     * @date 2020/12/17 16:16
     */
    get coreConfig(): Partial<CoreConfig>;
    createBasicHeaders(): {
        "Content-Type": string;
        Accept: string;
    };
    createAuthHeaders(): {
        "Content-Type": string;
        Accept: string;
    };
    /**
     * @description: 普通请求
     * @author ChenRui
     * @date 2020/12/17 15:35
     */
    fetch(path: string, query: any, body: any | undefined, method: string, header: any): Promise<DataOutput<any>>;
    /**
     * @description:  通用请求
     * @author ChenRui
     * @date 2020/12/17 15:39
     */
    general(api: any, query?: any | undefined, params?: any | undefined, requestConfig?: any | any): Promise<DataOutput<any>>;
    /**
     * @description: 参数序列化
     * @author ChenRui
     * @date 2020/12/17 15:34
     */
    serialize(data: any): string | undefined;
    /**
     * @description: url请求参数组装
     * @author ChenRui
     * @date 2020/8/28 15:21
     */
    urlQueryConvert(url: string, query: any): string;
}
declare const apiService: ApiService;
export default apiService;
