import { Output } from './interface-v2'; export declare class Base { protected userAgent: string; constructor(); /** * get 请求参数处理 * @param object query 请求参数 * @param exclude 需要排除的字段 * @returns */ protected objectToQueryString(object: Record, exclude?: string[]): string; /** * post 请求 * @param url 请求接口 * @param params 请求参数 */ protected postRequest(url: string, params: Record, authorization: string): Promise>; /** * post 请求 V2 * @param url 请求接口 * @param params 请求参数 */ protected postRequestV2(url: string, params: Record, authorization: string, headers?: {}): Promise; /** * get 请求 * @param url 请求接口 * @param query 请求参数 */ protected getRequest(url: string, authorization: string, query?: Record): Promise>; /** * get 请求 v2 * @param url 请求接口 * @param query 请求参数 */ protected getRequestV2(url: string, authorization: string, query?: Record): Promise; }