/** * Transport error codes shared across all Trulioo SDK platforms. * * Each platform SDK classifies native errors into these categories so that * consumers (e.g., the Capture SDK) can map errors without string-sniffing. */ export type TruliooTransportErrorCode = "TIMEOUT" | "NO_INTERNET" | "SERVER_DOWN" | "BAD_REQUEST" | "UNAUTHORIZED" | "TOO_MANY_REQUESTS" | "UNPROCESSABLE_ENTITY" | "REQUEST_FAILURE"; /** * Typed transport error thrown by TruliooClient when a request fails. * * Replaces raw Error/TypeError propagation so that consumers can classify * errors using the `code` field without parsing message strings. */ export declare class TruliooTransportError extends Error { readonly code: TruliooTransportErrorCode; readonly status: number | undefined; readonly endpoint: string | undefined; constructor(code: TruliooTransportErrorCode, message: string, options?: { status?: number; endpoint?: string; }); }