UNPKG

@idscan/idvc2

Version:

component for the capturing documents

39 lines (38 loc) 1.22 kB
import type { ErrorCodeNames } from '../environment/langs'; import { Base64 } from '../helpers/base64'; type ProcessingErrorCode = ErrorCodeNames | ''; type Coordinate = { x: number; y: number; }; export type MRZLocation = { leftTop: Coordinate; rightTop: Coordinate; rightBottom: Coordinate; leftBottom: Coordinate; }; export declare const setProcessingErrorCode: (errorCode: ProcessingErrorCode) => void; export declare const mrzProcess: (smallImage: ImageData, { side, perimeter, isHasFace }: { side: any; perimeter: any; isHasFace: any; }) => Promise<boolean>; export declare const pdfProcess: (smallImage: any, { perimeter }: { perimeter: any; }) => Promise<boolean>; /** * * @param {Base64} data - base64 image */ export declare const barCodeProcess: (data: Base64) => Promise<boolean>; export declare const frontProcess: ({ side, perimeter, isHasFace }: { side: any; perimeter: any; isHasFace: any; }) => Promise<boolean>; export declare const faceProcess: (smallImage: ImageData) => Promise<boolean>; export declare const backProcess: (smallImage: ImageData, { side, perimeter }: { side: any; perimeter: any; }) => Promise<boolean>; export {};