import type { TSKRType } from './skr.types.js'; export interface IAccountBalanceCents { accountNumber: string; debitCents: number; creditCents: number; /** debit - credit; sign interpretation belongs to the account type */ balanceCents: number; } export interface ITrialBalanceCents { accounts: IAccountBalanceCents[]; totalDebitCents: number; totalCreditCents: number; isBalanced: boolean; } export interface IBalanceQueryOptions { dateFrom?: Date; dateTo?: Date; /** include festgeschriebene entries (default true) */ includeFinalized?: boolean; } /** * Aggregated trial balance over all schemaVersion-2 entries. */ export declare function aggregateTrialBalance(skrType: TSKRType, options?: IBalanceQueryOptions): Promise; /** * Exact balance of one account. The entry filter selects the entries that * touch the account; the element filter keeps only the account's own lines, * so at most one group per side is read. */ export declare function aggregateAccountBalance(accountNumber: string, skrType: TSKRType, options?: IBalanceQueryOptions): Promise;