import type { SingleSidedLedgerRecord } from '../../../__generated__/types.js';
import type { IGetAllFinancialEntitiesResult } from '../../financial-entities/types.js';
export declare function sortEntityRecordsAndAddBalance(openingBalance: number, records: (Omit<SingleSidedLedgerRecord, 'balance' | 'counterParty'> & {
    counterParty?: IGetAllFinancialEntitiesResult;
})[]): (Omit<SingleSidedLedgerRecord, 'counterParty'> & {
    counterParty?: IGetAllFinancialEntitiesResult;
})[];
