UNPKG

emvco-qr-sdk

Version:

A robust TypeScript SDK for decoding, validating, and processing EMVCo-compliant QR codes used in digital payment systems.

31 lines (30 loc) 1.12 kB
/** * Facade utility class for resolving TLV tag and subtag names. * * Delegates tag name resolution to the appropriate region-specific resolver. * Provides a clean interface for resolving field names from raw TLV tags. */ export declare class TLVUtil { /** * Resolves a TLV tag to its EMVCo standard name. * * @param tag - A string tag identifier (e.g., "00", "54"). * @returns The corresponding field name or the raw tag. */ static getStandardName(tag: string): string; /** * Resolves a TLV tag to its Colombian-specific name. * * @param tag - A string tag identifier. * @returns The field name under Colombian QR mapping or the raw tag. */ static getColombianName(tag: string): string; /** * Resolves a subtag for a given parent tag based on Colombian QR mappings. * * @param parentTag - The top-level TLV tag. * @param subtag - A subfield tag under the parent. * @returns The resolved subfield name or the raw subtag if unknown. */ static getColombianSubtagName(parentTag: string, subtag: string): string; }