@li0ard/tsemrtd
Version:
simple library for eMRTD. supports browsers, node, bun and more!
26 lines (25 loc) • 613 B
TypeScript
import { TLV } from "@li0ard/tinytlv";
import { Interfaces } from "./index";
/**
* Class for working with DG2 (Face)
*/
export declare class DG2 {
/**
* Extract int from Uint8Array
* @param data Uint8Array
* @param start Offset
* @param end Offset+length
*/
private extractContent;
/**
* Read Biometric data block
* @hidden
* @param tlv
*/
readBDB(tlv: TLV): Interfaces.DecodedImage;
/**
* Get image of face and meta info
* @param data Data of EF.DG2 file
*/
static load(data: string | Uint8Array): Interfaces.DecodedImage[];
}