@privateid/cryptonets-web-sdk
Version:
CryptoNets WebAssembly SDK
27 lines (26 loc) • 924 B
TypeScript
export declare enum callbakTypeEnum {
isValid = "isValid",
predict = "predict",
enroll = "enroll",
frontScan = "frontScan",
passportScan = "passportScan",
documentScanNoFace = "documentScanNoFace",
backScan = "backScan",
faceLogin = "faceLogin",
faceISO = "faceISO",
delete = "delete",
documentOcr = "documentOcr",
continuousPredict = "continuousPredict",
ageEstimation = "ageEstimation",
faceCompare = "faceCompare",
faceCompareDocumentAndFace = "faceCompareDocumentAndFace"
}
interface createCallbackProps {
type: callbakTypeEnum;
callbackFunction: (result: any) => void;
imageData?: ImageData;
portrait?: string;
returnType?: 'default' | 'all';
}
export declare const createCallback: ({ type, callbackFunction, returnType, imageData, portrait }: createCallbackProps) => (operation: string, id: string, response_str: any) => void;
export {};