UNPKG

viettel-ekyc-sdk

Version:
41 lines (40 loc) 1.85 kB
import { CardInfo } from '../components/interface'; export interface LivenessPost { code: number; message: string; request_id?: string; verify_result?: boolean; score?: number; } export interface FaceMatchingPost { code: number; message: string; request_id?: string; verify_result?: boolean; score?: number; } export interface BaseResponsePost { code: number; message: string; request_id?: string; } export interface OcrIdCardPost { code: number; message: string; request_id?: string; information?: CardInfo; } export interface OCRIdTypePost { code: number; message: string; result: string; request_id?: string; } declare const checkLivenessPost: (imageUriBase64: string) => Promise<import("apisauce").ApiResponse<LivenessPost, LivenessPost>>; declare const checkFaceSanityPost: (imageUriBase64: string) => Promise<import("apisauce").ApiResponse<BaseResponsePost, BaseResponsePost>>; declare const checkIdSanityPost: (imageUriBase64: string) => Promise<import("apisauce").ApiResponse<BaseResponsePost, BaseResponsePost>>; declare const checkIdTemperingPost: (imageUriBase64: string) => Promise<import("apisauce").ApiResponse<BaseResponsePost, BaseResponsePost>>; declare const getTypeCardPost: (imageUriBase64: string) => Promise<import("apisauce").ApiResponse<OCRIdTypePost, OCRIdTypePost>>; declare const faceMatchingPost: (imageCmtBase64: string, imageLiveBase64: string) => Promise<import("apisauce").ApiResponse<FaceMatchingPost, FaceMatchingPost>>; declare const ocrIdCardPost: (image_front: string | null, image_back: string | null) => Promise<import("apisauce").ApiResponse<OcrIdCardPost, OcrIdCardPost> | null>; export { checkFaceSanityPost, checkIdSanityPost, checkIdTemperingPost, checkLivenessPost, faceMatchingPost, getTypeCardPost, ocrIdCardPost, };