export interface CheckFaceResponse { requestId?: string; result?: FaceVerifyResult; status?: string; statusCode?: string; error?: string; type?: string; } export interface FaceVerifyResult { conf?: number; match?: string; matchScore?: number; toBeReviewed?: string; } /** * Payload emitted by onFaceCompareSuccess listener. * event = "FACE_SUCCESS" | "LOG_SUCCESS" * data = CheckFaceResponse object (bridge serialises individual fields, not a JSON string) */ export interface FaceCompareSuccessEvent { event: string; data: CheckFaceResponse; } export interface FaceServiceConfig { /** * Backward/forward compatible: * - SDK code uses `appKey` * - Some integration docs use `appKeyFaceService` * Provide either; `startFaceCompare()` will normalize. */ appKey: string; appKeyFaceService?: string; transactionId?: string; selfieImage: string; idImage: string; } /** Face Compare error – dùng chung EKYCError (event, code, message). */ export type FaceCompareError = import('./ekycType').EKYCError;