export interface ApiClientOptions { serverUrl: string; apiKey: string; fetch?: typeof globalThis.fetch; } export declare class ApiError extends Error { readonly status: number; constructor(message: string, status: number); } export declare class PaApiClient { private readonly serverUrl; private readonly apiKey; private readonly fetchFn; constructor(options: ApiClientOptions); private headers; private buildUrl; private handleResponse; getJson(apiPath: string): Promise; delete(apiPath: string): Promise; deleteJson(apiPath: string): Promise; postMultipart(apiPath: string, formData: FormData): Promise; postJson(apiPath: string, body?: unknown): Promise; patchJson(apiPath: string, body?: unknown): Promise; downloadFile(apiPath: string, outputPath: string): Promise; }