import { Base64, LOGTYPE, ScreenOrientation } from './types'; export declare const isLoad: (isSimd: boolean, sessionToken: string, publicKey: string, apiUrl: string, timeout: number, debugType: string) => Promise, prividAgePredict: (data: Uint8ClampedArray, width: number, height: number, simd: boolean, config: string, cb: any) => Promise<{ result: number; ageFactor?: number; }>, FHE_enrollOnefa: (imageData: ImageData, simd: boolean, config: string, cb: any) => Promise<{ result: number; imageData: Uint8ClampedArray; height: number; width: number; }>, FHE_predictOnefa: (originalImages: ImageData[], simd: boolean, config: string, cb: any) => Promise<{ result: number; href: ImageData[]; }>, scanDocument: (imageInput: ImageData, simd: boolean, cb: any, doPredict: boolean, config: string, debug_type?: string, scanDocumentData?: any) => Promise<{ result: number; croppedDocument: Uint8ClampedArray; croppedMugshot: Uint8ClampedArray; }>, scanDocumentNoFace: (imageInput: ImageData, simd: boolean, cb: any, config: string, debug_type?: string, scanDocumentData?: any) => Promise<{ result: number; croppedDocument: Uint8ClampedArray; }>, deleteUUID: (uuid: string, cb: any) => void, isValidBarCode: (imageInput: ImageData, simd: boolean, cb: any, config: string, debug_type: string) => Promise<{ result: number; croppedDocument: Uint8ClampedArray; croppedBarcode: Uint8ClampedArray; }>, faceCompare: (inputImageA: ImageData, inputImageB: ImageData, cb: any, config: string, simd: boolean, debug_type: string) => Promise<{ result: number; }>, pkiEnrcrypt: (payload: string) => Promise<{ encryptedKey: string; iv: string; gcmAad: string; gcmTag: string; encrptedMessage: string; }>, confirmUserOnSwitch: (originalImages: ImageData[], simd: boolean, config: string, cb: any) => Promise<{ result: number; imageData: Uint8ClampedArray; height: number; width: number; }>, predictStatus: (originalImages: ImageData[], simd: boolean, config: string, cb: any) => Promise<{ result: number; href: ImageData[]; }>; export declare function iOS(): boolean; export declare function isMobileFunc(): boolean; export declare const getIsSIMD: () => Promise; export declare const getUrlParameter: (sParam: string, defaultValue: string) => string; export declare const getDebugType: () => string; /** * This function does the printing in the console based on the type and will only print based on @param debugType * Please make sure to use this so that logs on the module would only print depending on the debug level * @param title title of the printing. sample console.log(tiltle, message) * @param message message of the printing. sample console.log(tiltle, message) if this is not needed just throw an empy string. sample: printLogs(title, '', debugType) * @param debugType this variable will determine the type of printing in the console * @param type this variable will determing the type of printing in the console, "LOG", "WARNING" or "ERROR" by default it is "LOG" */ export declare const printLogs: (title: string, message: any, debugType: string, type?: LOGTYPE) => void; export declare const getPortraitBase64: (content: ImageData) => Promise; export declare const createImages: (images: Array, title: string, action: boolean) => Promise; export declare const wait: (timeout: number) => Promise; export declare const arrayToTextDownload: (data: Array, filename: string) => void; export declare function setDefaultCameraDeviceId(deviceId: string): void; export declare function getDefaultCameraDeviceId(): string; export declare const convertCroppedImage: (croppedBarcode: any, cropImageWidth: number, cropImageHeight: number) => Promise; export declare const isMobileDevice: () => boolean; export declare enum MessageType { faceValidation = "Face Validation", antispoofStatus = "Antispoof Status" } export declare const getStatusMessage: (result: number, type?: MessageType) => "" | "Processing hold still" | "Please move back" | "Please move closer" | "Move face into circle" | "Please hold still" | "Remove glasses" | "Remove mask " | "Please look at camera" | "Raise phone level to face" | "Look down a little" | "“Lower phone level to face" | "Look up a little" | "Too dim - increase lighting" | "Too bright - lower lighting" | "Please close mouth" | "Please straighten head" | "Looking for face"; export declare const getRawFaceValidationStatus: (status: number) => "" | "No Face" | "Valid Face" | "Image Spoof" | "Video Spoof" | "Too Close" | "Too far away" | "Too far to right" | "Too far to left" | "Too far up" | "Too far down" | "Too blurry" | "Glasses on" | "Mask on" | "Chin too far left" | "Chin too far right" | "Chin too far up" | "Chin too far down" | "Image too dim" | "Image too bright" | "Face low confidence value" | "Invalid face background" | "Eyes blink" | "Mouth Open" | "Face rotated right" | "Face rotated left"; export declare const getRawSpoofStatusMessage: (status: number) => "" | "Generic Error" | "Invalid Face" | "Face Too Close To Edge" | "Mobile Phone Detected" | "No Face Detected" | "Real" | "Spoof Detected"; export declare const checkPackageSupport: () => Promise<{ support: boolean; message?: string; }>; export declare const getFrontDocumentStatusMessage: (result: number) => "" | "Please hold still" | "Success" | "Move Closer" | "Please show front of the ID" | "Move just a little closer" | "Too blurry, please hold still" | "SYSTEM ERROR. Please try again later." | "Please show ID at the center of the screen"; export declare const getBackDocumentStatusMessage: (result: number) => "" | "Success" | "Move just a little closer" | "Too blurry, please hold still" | "SYSTEM ERROR. Please try again later." | "Please show ID at the center of the screen" | "Move closer to barcode" | "Please move closer to barcode" | "Please show barcode in the box"; export declare function getScreenOrientation(): ScreenOrientation;