UNPKG

aamva-parser

Version:

Plugin to parse AAMVA Drivers License Data from the PDF417 barcode

29 lines (28 loc) 743 B
export interface FieldMapping { fields: { [key: string]: string; }; /** * Determine the AAMVA field designator for a particular human-readable key. * * @param key - The human-readable key * @returns The AAMVA field designator */ fieldFor(key: string): string; } export declare class FieldMapper implements FieldMapping { private _fields; get fields(): { [key: string]: string; }; set fields(newFields: { [key: string]: string; }); /** * Determine the AAMVA field designator for a particular human-readable key. * * @param key - The human-readable key * @returns The AAMVA field designator */ fieldFor(key: string): string; }