import { Throttler } from './throttler'; /** * Simple api error with HTTP status and message. */ export declare class HttpError extends Error { readonly message: string; readonly status: number; readonly url?: string; constructor(message: string, status: number, url?: string); } export declare class HttpClient { private throttler; constructor(throttler?: Throttler); /** * Executes the request. */ protected request(method: string, url: string, headers?: Record, body?: any): Promise; /** * Performs a request with `get` http method. */ get(url: string, query?: Record, headers?: Record): Promise; /** * Performs a request with `post` http method. */ post(url: string, body?: any, headers?: Record): Promise; } export declare const httpClient: HttpClient;