UNPKG

upn-with-qr-generator

Version:

A UPN + QR code generator for Slovenian banking system (2024 standard compliant) with environment-aware canvas support and isPNGGenerationAvailable method

20 lines (19 loc) 556 B
import { UPNData } from './UPNGenerator'; declare class UPNWriter { private upnGenerator; private canvas; private canvasAvailable; constructor(data: UPNData); private initializeCanvas; private generateCanvas; saveAsPNG(outputPath: string): Promise<void>; png(): Promise<string>; gdResource(): Promise<Buffer>; isPNGGenerationAvailable(): boolean; private getReferencePrefix; private getReferenceSuffix; private formatDate; private formatAmount; private convertLegacyDate; } export { UPNWriter };