import { LineInfo } from '../../common'; import { TransactionLineRowSortConfig } from './header/transactionLineHeaderConfig'; /** * Accessor functions resolve the sort value for each column from a * line. Mirrors the JE table's `JournalEntrySortAccessors` contract * (epic-state) but narrowed to the non-JE column set: * description, category, class, amount. */ export interface TransactionLineSortAccessors { amount: (line: LineInfo) => number; category: (line: LineInfo) => string; class: (line: LineInfo) => string; description: (line: LineInfo) => string; } /** * Stable, accessor-driven sort. Strings are lowered before compare; * the amount column compares numerically. */ export declare const sortTransactionLines: (lines: ReadonlyArray, config: TransactionLineRowSortConfig, accessors: TransactionLineSortAccessors) => LineInfo[];