import type { ApiErrorOptions, ERROR_CODE, ERROR_MODULE, ErrorInfo } from './types.ts'; import { ERROR_TYPE } from './types.ts'; export declare class ApiError extends Error { readonly status: number; readonly revision: string; readonly type?: ERROR_TYPE; readonly module: ERROR_MODULE; readonly code: ERROR_CODE; readonly message: string; readonly display: string; readonly stack?: string; readonly options: ApiErrorOptions; readonly displayMessageParams?: string[]; constructor({ status, revision, module, code, message, type, options: { shouldLog, shouldThrow, shouldTrace }, displayMessageParams, }: ErrorInfo); static fromErrorInfo(errorInfo: ErrorInfo): ApiError; toErrorInfo(): ErrorInfo; get identifier(): string; get displayMessage(): string; handle(): ErrorInfo; } //# sourceMappingURL=apiError.d.ts.map