import type { ApiClient, HttpMethod } from './ApiClient'; export interface ValidationError { path: string; message: string; code: string; } export declare class ApiError extends Error { readonly errorClass?: string | undefined; readonly status?: number | undefined; readonly validationErrors: ValidationError[] | null; constructor(message: string, errorClass?: string, status?: number, validationErrors?: ValidationError[] | null); } export declare class BaseApiClient implements ApiClient { protected readonly baseUrl: string; protected accessToken: string | null; constructor(baseUrl: string, accessToken?: string); setAccessToken(accessToken: string): this; request(method: HttpMethod, endpoint: string, body?: TBody, headers?: Record): Promise; protected handleResponse(response: Response): Promise; get(endpoint: string, headers?: Record): Promise; post(endpoint: string, body?: TBody, headers?: Record): Promise; put(endpoint: string, body?: TBody, headers?: Record): Promise; patch(endpoint: string, body?: TBody, headers?: Record): Promise; delete(endpoint: string, headers?: Record): Promise; } //# sourceMappingURL=BaseApiClient.d.ts.map