export interface MintApiErrorEnvelope { code: string; message: string; status: number; request_id: string | null; details: unknown; detail?: unknown; } /** Public error thrown by typed MINT SDK requests. */ export declare class MintApiError extends Error { readonly code: string; readonly status: number; readonly requestId: string | null; readonly details: unknown; readonly detail: unknown; readonly body: unknown; readonly cause?: unknown | undefined; readonly name: string; constructor(message: string, code: string, status: number, requestId: string | null, details: unknown, detail: unknown, body: unknown, cause?: unknown | undefined); } export interface MintApiErrorOptions { requestId?: string | null; cause?: unknown; } /** Normalize current typed envelopes and the previous FastAPI detail shape. */ export declare function mintApiErrorFromResponse(status: number, payload: unknown, options?: MintApiErrorOptions): MintApiError;