import * as superagent from 'superagent'; export declare class ApiRequestError extends Error { url: string; reason: Error | string; constructor(url: string, reason: Error | string); static forRequest(req: superagent.Request, reason: Error | string): ApiRequestError; static forResponse(res: superagent.Response, reason: Error | string): ApiRequestError; } export type RequestOptions = { retry?: number; }; export type Response = { map(f: (body: T) => V): V; }; export interface HttpClient { withBaseUrl(baseUrl: string): HttpClient; get(path: string): Promise>; } export declare function mapSeries(arr: T[], f: (v: T, i: number) => Promise): Promise; export declare class BaseHttpClient implements HttpClient { baseUrl?: string | undefined; constructor(baseUrl?: string | undefined); withBaseUrl(baseUrl: string): BaseHttpClient; request(method: 'get' | 'post', path: string, requestBody: unknown | undefined): Promise>; get(path: string): Promise>; } //# sourceMappingURL=BaseHttpClient.d.ts.map