UNPKG

@accounter/server

Version:
21 lines (20 loc) 996 B
import type { Header, Options, Transaction } from '../types.js'; export declare const digitsAdjuster: (value: string, length: number) => string; export declare const cleanNonDigitChars: (value: string) => string; export declare const addLeadingZeros: (value: number | undefined, length: number) => string; export declare const numToSignedString: (value: number, length: number) => string; export declare const headerInfoToHeaderAndFooterStrings: (header: Header, options: Options) => { header: string; footer: string; }; export declare function sortTransactions(transactions: Transaction[], options: Options): { entryType: import("../types.js").EntryType; vatId: string | undefined; allocationNumber: string | undefined; invoiceDate: string; refGroup: string | undefined; refNumber: string | undefined; invoiceSum: number; totalVat?: number | undefined; }[]; export declare function transactionToString(transaction: Transaction, options: Options): string;