import type { IGetChargesByIdsResult } from '../../charges/types.js';
import type { IGetReferenceMergeCandidatesResult } from '../types.js';
export type MergeChargePlan = {
    reference: string;
    baseChargeId: string;
    chargeIdsToMerge: string[];
};
type BuildMergeChargePlanParams = {
    candidates: readonly IGetReferenceMergeCandidatesResult[];
    chargeById: ReadonlyMap<string, IGetChargesByIdsResult>;
};
type BuildMergeChargePlanResult = {
    plans: MergeChargePlan[];
    errors: string[];
};
export declare function buildMergeChargesByTransactionReferencePlan({ candidates, chargeById, }: BuildMergeChargePlanParams): BuildMergeChargePlanResult;
export {};
