import { ApiResponse } from './ApiResponse.ts'; export type GenericResponseBody = { type: string; code: string; title: string; detail: string; violations?: { propertyPath: string; message: string; }[]; }; export declare class ApiError extends Error { readonly statusCode: number; readonly statusText: string; readonly body: GenericResponseBody; private constructor(); static create(apiResponse: ApiResponse): Promise; static createStatic(statusCode: number, statusText: string, body: GenericResponseBody): ApiError; }