import { Method } from 'axios'; export declare class ApiError extends Error { request: { status: number; method: string; url: string; }; body: { error: string; message?: string; invalidFields?: { path: string[]; message: string; type: string; }[]; }; constructor(request: { status: number; method: string; url: string; }, body: { error: string; message?: string; invalidFields?: { path: string[]; message: string; type: string; }[]; }); } export declare function debugLog(...args: any[]): void; export declare function api({ version, method, path, data, query, headers, auth, responseType, abortController, retry, }: { version?: 'v1'; method: Method; path: string; query?: Record; data?: unknown; headers?: Record; auth?: { apiUrl: string; credentials: string; }; responseType?: 'json' | 'stream'; abortController?: AbortController; retry?: number; }): Promise<{ body: T; }>; //# sourceMappingURL=api.d.ts.map