import { InkressConfig, ApiResponse } from './types'; export interface RequestOptions { method?: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH'; body?: any; headers?: Record; timeout?: number; } export declare class HttpClient { private config; constructor(config: InkressConfig); private getBaseUrl; private getHeaders; private makeRequest; private retryRequest; private shouldRetry; private delay; /** * A request relative to the API origin (not `/api/`), returning the status, headers and * parsed body without the `{state, result}` envelope or throwing on 4xx. Used for endpoints that * speak another protocol (OFREP) or answer without the envelope (`/access`). */ raw(method: 'GET' | 'POST', originPath: string, options?: { body?: unknown; headers?: Record; }): Promise>; get(path: string, params?: Record): Promise>; post(path: string, body?: any): Promise>; put(path: string, body?: any): Promise>; delete(path: string): Promise>; patch(path: string, body?: any): Promise>; updateConfig(newConfig: Partial): void; getConfig(): Omit; } /** Result of `HttpClient.raw`. */ export interface RawResponse { status: number; headers: Headers; body: T | null; } export declare class InkressApiError extends Error { readonly status: number; readonly result: any; constructor(message: string, status: number, result?: any); } //# sourceMappingURL=client.d.ts.map