import { BaseResponse, IStorage } from './types/common'; type HttpRequestOptions = { method?: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH'; body?: any; contentType?: 'json' | 'form'; authenticated?: boolean; queryParams?: Record; }; declare function createFormData(body: any): string; declare class HttpClient { private apiUrl; private storage; private apiKey?; constructor(apiUrl: string, storage: IStorage, apiKey?: string); getApiUrl(): string; getStorage(): IStorage; getToken(): Promise; /** * Raw HTTP request. Returns parsed JSON. Throws FailureResponse on HTTP errors. */ request(path: string, options?: HttpRequestOptions): Promise; /** * Like request() but also verifies responseCode === 'ok'. * Throws FailureResponse if responseCode is not 'ok'. */ requestAndValidate(path: string, options?: HttpRequestOptions): Promise; } export { HttpClient, createFormData }; export type { HttpRequestOptions }; //# sourceMappingURL=http-client.d.ts.map