import { COABalance } from '../../commonStateTypes/coaBalance/coaBalance'; import { HorizontalAccountRow, ProfitAndLossByClassHorizontalReport } from './profitAndLossClassesByClassHorizontalSelectorTypes'; /** * Populates `sectionHeaderBalancesSlice`, and per-account `accountReportData`, so the * web layer only maps selector output to tree nodes. */ export declare function enrichProfitAndLossByClassHorizontalReport(report: ProfitAndLossByClassHorizontalReport): void; /** * Sum balances across descendant accounts (recursive). * * Parent rows in the horizontal pivot only carry their own direct postings * (zero for "container" accounts), so callers rendering "Total {parent}" rows * must aggregate from descendants to get the real per-class totals. * * Returns one `COABalance` per class column + total (same shape as the * enriched `balancesInTimeframe.balances`), with `amount` summed and `type` * set to `default_with_null_balance` for zeros. Returns `[]` when no * descendants have enriched data. */ export declare function aggregateHorizontalDescendantBalances(accounts: readonly HorizontalAccountRow[], childIndices: readonly number[], childrenByParent: Readonly>): COABalance[];