/** * Error codes enum for the eKYC SDK. * Helps consumers classify and handle errors accurately. */ export declare enum EkycErrorCode { /** Network error (no connection, timeout) */ NETWORK_ERROR = "NETWORK_ERROR", /** Request timeout */ TIMEOUT_ERROR = "TIMEOUT_ERROR", /** OCR extraction failed */ OCR_FAILED = "OCR_FAILED", /** Liveness detection failed */ LIVENESS_FAILED = "LIVENESS_FAILED", /** Face match failed */ FACE_MATCH_FAILED = "FACE_MATCH_FAILED", /** Invalid SDK configuration */ INVALID_CONFIG = "INVALID_CONFIG", /** Authentication failed (invalid API key) */ AUTHENTICATION_FAILED = "AUTHENTICATION_FAILED", /** Invalid registrant configuration (wrong count or roles) */ INVALID_REGISTRANTS = "INVALID_REGISTRANTS", /** Unknown error */ UNKNOWN = "UNKNOWN" } /** * Custom Error class for the eKYC SDK. * Provides detailed error information including error code, * HTTP status code, and additional details. */ export declare class EkycError extends Error { /** Classified error code */ readonly code: EkycErrorCode; /** HTTP status code (if available) */ readonly statusCode?: number; /** Additional details from the API response */ readonly details?: Record; /** Timestamp when the error occurred */ readonly timestamp: string; constructor(message: string, code: EkycErrorCode, statusCode?: number, details?: Record); /** * Serialize the error to a plain object for logging or transmission. */ toJSON(): Record; } //# sourceMappingURL=EkycError.d.ts.map