import { EntityManager } from 'typeorm';
export type ApplyInvoiceSideEffectsResult = {
    updatedSchemeYear: boolean;
    multiplierApplied: number;
    yearlyDetailRowId: string | null;
    monthsBefore: number | null;
    monthsAfter: number | null;
};
/**
 * Inside one DB transaction: sync `schemes.om_year` / multiplier / amounts when the effective
 * O&M year for this bill differs from the row, then bump `scheme_yearly_details` for the bill anchor.
 */
export declare function applyInvoiceSideEffectsTx(args: {
    manager: EntityManager;
    schemeId: string;
    billAnchorIso: string;
    finalCost: number;
    omStartIso: string;
    timezone: string;
    /** Canonical O&M display year (1..10) for this invoice — written to schemes when DB om_year differs. */
    schemeOmYearTarget: number;
    source: 'cron' | 'catchup';
    schemeCode?: string;
    billingPeriodKey: string;
}): Promise<ApplyInvoiceSideEffectsResult>;
//# sourceMappingURL=invoiceTxSideEffects.d.ts.map