/** * API 调用客户端 */ import type { ApiCallInput, ApiCallResult, ApiDefinition, ClientCallParams, ClientOptions, ClientTokenApiOptions, TokenApiCallParams, TradesSoldGetParams } from './types'; import type { HttpResponse } from './utils/http'; /** * 发起接口调用 * * @param apiParam 接口调用参数 { api, version, token?, params?, files?, config?, host? } */ export declare function call(apiParam: ApiCallInput): Promise>>; /** * 创建 Token 类固定 API 调用方法 */ export declare function createTokenApiCaller = Record>(definition: ApiDefinition): (apiParam: TokenApiCallParams) => Promise>; /** 订单批量查询接口 */ export declare const tradesSoldGet: (apiParam: TokenApiCallParams) => Promise>; /** * 有赞云 API 客户端实例 */ export declare class Client { private readonly getToken?; private readonly host?; constructor(options?: ClientOptions); private requireToken; /** * 发起实例接口调用,不传 token 时自动调用 getToken。 */ call(apiParam: ClientCallParams): Promise>; /** * 订单批量查询接口 */ tradesSoldGet(params?: TradesSoldGetParams, options?: ClientTokenApiOptions): Promise>; } //# sourceMappingURL=client.d.ts.map