UNPKG

iso8583_esm

Version:

A javascript library for messaging in iso 8583 messaging format.

12 lines (11 loc) 782 B
/** * This module has helper functions that are useful along side this library. */ import type { KeyValueStringT } from './t'; export declare const getPostillionLength: (buf: Buffer) => number; export declare const extractPostillionData: (sent: Buffer) => Buffer<ArrayBuffer>; export declare const attachPostillionLength: (_data: string | Buffer) => Buffer<ArrayBuffer>; export declare const attachDiTimeStamps: (obj: KeyValueStringT) => KeyValueStringT; export declare const findRequiredFields: (json: any, key: string, processing_code: string, message_code: string | null) => any; export declare const matchValues: (required_fields: string[] | number[], iso_fields: string[] | number[]) => string[] | number[]; export declare const extractBits: (iso: KeyValueStringT) => any[];