import type { ISkrMigrationStep } from './helpers.migration.js'; /** * Test-only fault seams: each runs at one crash point of the step and may * throw to simulate a crash there. Production runs pass none. */ export interface ILedgerUnificationFaults { /** inside the import transaction, after the entry is inserted, before the Transaction is marked */ afterSynthesizedInsert?(legacyTransactionId: string): Promise | void; /** inside the chain transaction, after the entry is chained, before the counter advances */ beforeCounterAdvance?(chained: IChainedPosition): Promise | void; /** after the transaction that chained one entry and advanced its counter has committed */ afterChainedEntry?(chained: IChainedPosition): Promise | void; } /** The chain position one entry was given. */ export interface IChainedPosition { skrType: string; fiscalYear: number; sequenceNumber: number; } /** The id of the journal entry synthesized from one legacy Transaction. */ export declare const synthesizedEntryId: (legacyTransactionId: string) => string; /** The ledger unification step; tests pass fault seams, production passes none. */ export declare const createLedgerUnificationStep: (faults?: ILedgerUnificationFaults) => ISkrMigrationStep; export declare const ledgerUnificationStep: ISkrMigrationStep;