import type { Transaction } from "@olenbetong/appframe-updater"; import { createTransactionColumns, type EditorTransactionRow } from "./tableFormatting.js"; export interface TransactionsTableLayoutOptions { displayTransactions: Transaction[]; showErrorColumn: boolean; tableWidth: number; } export interface TransactionsTableLayoutResult { columns: ReturnType; rows: EditorTransactionRow[]; widths: number[]; tableContentWidth: number; lineWidth: number; header: string; divider: string; } export declare function useTransactionsTableLayout({ displayTransactions, showErrorColumn, tableWidth, }: TransactionsTableLayoutOptions): TransactionsTableLayoutResult;