import { RequestOptions } from "./with-retry.js"; import { Options } from "../_async-retry.js"; import "#compiled/zod/index.js"; //#region src/api-client/base-client.d.ts interface RequestParams extends RequestInit { headers?: Record; method?: string; onRetry?(error: any, options: RequestOptions): void; query?: Record; retry?: Partial; } /** * A base API client that provides a convenience wrapper for fetching where * we can pass query parameters as an object, support retries, debugging * and automatic authorization. */ declare class BaseClient { protected token?: string; private fetch; private debug; private baseUrl; private agent; constructor(params: { debug?: boolean; baseUrl: string; token?: string; fetch?: typeof globalThis.fetch; }); protected request(path: string, opts?: RequestParams): Promise; } interface Parsed { response: Response; text: string; json: Data; } //#endregion export { BaseClient, Parsed, RequestParams }; //# sourceMappingURL=base-client.d.ts.map