import { DataModel } from "./types.js"; /** * Parse a tab-separated intermediate format into DataModel. * * Base fields * - Field 0: invoiceId * - Field 1: paymentsCount * * Payment block (repeated `paymentsCount` times) * - Field +0: type * - Field +1: amount * - Field +2: currencyCode * - Field +3: paymentDueDate (YYYYMMDD) * - Field +4: variableSymbol * - Field +5: constantSymbol * - Field +6: specificSymbol * - Field +7: originatorsReferenceInformation * - Field +8: paymentNote * - Field +9: bankAccountsCount * * Bank account block (nested, repeated `bankAccountsCount` times) * - Field +0: iban * - Field +1: bic * * Standing order extension * - Field +X: standingOrderExt ("0" | "1") * - if "1": * - Field +1: day * - Field +2: month (classifier sum) * - Field +3: periodicity * - Field +4: lastDate (YYYYMMDD) * * Direct debit extension * - Field +Y: directDebitExt ("0" | "1") * - if "1": * - Field +1: directDebitScheme * - Field +2: directDebitType * - Field +3: variableSymbol * - Field +4: specificSymbol * - Field +5: originatorsReferenceInformation * - Field +6: mandateId * - Field +7: creditorId * - Field +8: contractId * - Field +9: maxAmount * - Field +10: validTillDate * * Beneficiary block (repeated per payment) * - Field +0: beneficiaryName * - Field +1: beneficiaryStreet * - Field +2: beneficiaryCity * * @see 3.14 * @see Table 15 */ export declare function deserialize(tabString: string): DataModel; /** * Decoding client data from QR Code 2005 symbol * * Input binary structure (after base32hex decoding): * ``` * +------------------+------------------+-----------------------------+ * | 2 bytes | 2 bytes | Variable | * +------------------+------------------+-----------------------------+ * | Bysquare Header | Payload Length | LZMA Body | * | (4 nibbles) | (little-endian) | (compressed CRC+payload) | * +------------------+------------------+-----------------------------+ * ``` * * After LZMA decompression: * ``` * +------------------+---------------------------+ * | 4 bytes | Variable | * +------------------+---------------------------+ * | CRC32 Checksum | Tab-separated payload | * | (little-endian) | (UTF-8 encoded) | * +------------------+---------------------------+ * ``` * * @see 3.16. * @param qr base32hex encoded bysquare binary data */ export declare function decode(qr: string): DataModel;