@yidun/livedetect-sdk-h5
Version:
活体检测 H5
73 lines (72 loc) • 3.72 kB
TypeScript
export declare type Lang = 'zh-CN' | 'en-US';
declare class I18n {
data: Record<string, Record<string, string>>;
currentLang: Lang;
trans(key: string, lang?: Lang): string;
add(lang: Lang, transData: Record<string, string>): void;
setCurrentLang(lang: Lang): void;
}
export declare const i18n: I18n;
export declare const LOADING = "Loading...";
export declare const FACE_THE_SCREEN = "FaceTheScreen";
export declare const DETECTION_COMPLETED = "DetectionCompleted";
export declare const WELL_LIT = "WellLit";
export declare const FACE_PHONE = "FacePhone";
export declare const DO_NOT_COVER_FACE = "DoNotCoverFace";
export declare const XHR_ERROR = "XhrError";
export declare const CHECK_ERROR = "CheckError";
export declare const CHECK_NET_FAIL = "CheckNetFail";
export declare const REJECTED = "Rejected";
export declare const AUTH = "Auth";
export declare const UNSUPPORT = "Unsupported";
export declare const NOT_ALLOWED = "NotAllowed";
export declare const NOT_FOUND = "NotFound";
export declare const NOT_READABLE = "NotReadable";
export declare const OVER_CONSTRAINED = "OverConstrained";
export declare const ABORT = "Abort";
export declare const PD_FAIL = "PdFail";
export declare const GET_CONF_NET_FAIL = "GetConfNetFail";
export declare const GET_CONF_FAIL = "GetConfFail";
export declare const TIP_EMPTY = "TipEmpty";
export declare const TIP_MULTIPLE = "TipMultiple";
export declare const TIP_OUTSIDE = "TipOutside";
export declare const TIP_CLOSE = "TipClose";
export declare const TIP_FAR = "TipFar";
export declare const TIP_LIGHT = "TipLight";
export declare const TIP_DARK = "TipDark";
export declare const TIP_ROTATE = "TipRotate";
export declare const TIP_BLINK = "TipBlink";
export declare const TIP_MOUTHOPEN = "TipMouthopen";
export declare const TIP_HEADRIGHT = "TipHeadRight";
export declare const TIP_HEADLEFT = "TipHeadLeft";
export declare const TIP_LOOKUP = "TipLookup";
export declare const TIP_LOOKDOWN = "TipLookdown";
export declare const TIP_ACTION_OVER = "TipActionOver";
export declare const TIP_COLOR_READY = "TipColorReady";
export declare const TIP_COLOR_RUNNING = "TipColorRunning";
export declare const TIP_OK = "TipOK";
export declare const TIP_TIMEOUT = "TipTimeout";
export declare const FAIL_TIP_UNSUPPORTED = "FailTipUnsupported";
export declare const FAIL_TIP_NOT_ALLOWED = "FailTipNotAllowed";
export declare const FAIL_TIP_NOT_FOUND = "FailTipNotFound";
export declare const FAIL_TIP_NOT_READABLE = "FailTipNotReadable";
export declare const FAIL_TIP_OVER_CONSTRAINED = "FailTipOverConstrained";
export declare const FAIL_TIP_ABORT = "FailTipAbort";
export declare const FAIL_TIP_PD_FAIL = "FailTipPDFail";
export declare const FAIL_TIP_TIMEOUT = "FailTipTimeout";
export declare const FAIL_TIP_REJECT = "FailTipReject";
export declare const FAIL_TIP_AUTH = "FailTipAuth";
export declare const VIDEO_ACTION_OPEN_MOUTH = "VideoActionOpenMouth";
export declare const VIDEO_ACTION_WINK = "VideoActionWink";
export declare const VIDEO_TIP_TESING = "VideoTipTesting";
export declare const VIDEO_TIP_DURATION = "VideoTipDuration";
export declare const VIDEO_TIP_CAMERA_FAIL = "VideoTipCameraFail";
export declare const VIDEO_TIP_SELF_RECORD = "VideoTipSelfRecord";
export declare const VIDEO_TIP_BRIGHTEN_ENV = "VideoTipBrightenEnv";
export declare const VIDEO_TIP_BLINK_3_5 = "VideoTipBlink35";
export declare const VIDEO_TIP_OPEN_MOUTH_3_5 = "VideoTipOpenMouth35";
export declare const VIDEO_TIP_VIDEO_LEN_3_5 = "VideoTipVideoLen35";
export declare const VIDEO_START_RECORD = "VideoStartRecord";
export declare const VIDEO_TIP_VIDEO_TOO_LARGE = "VideoTipVideoTooLarge";
export declare const VIDEO_TIP_VIDEO_USELESS = "VideoTipVideoUseless";
export {};