import { ProtectionPlanSummary } from "../../../../../protection-plan";
import { OnlyOne } from "../../../../../../../core/modules/_shared/infrastructure/typescript/utils";
type BeneficiaryIdentity = OnlyOne<{
    id: string;
    email: string;
    code: string;
}>;
export default function useMergePersonalPlanBeneficiarySelection({ plan, initialMergeAuthorityEmail }: {
    plan?: ProtectionPlanSummary;
    initialMergeAuthorityEmail?: string;
}): {
    selection: {
        count: number;
        max: number;
    };
    isBeneficiarySelected: (beneficiary: BeneficiaryIdentity) => boolean;
    canUseRecoveryShares: boolean;
    useRecoveryShares: boolean;
    toggleUseRecoveryShares: (value: boolean) => void;
    selectedBeneficiaries: BeneficiaryIdentity[];
    selectedMergeAuthority: BeneficiaryIdentity | undefined;
    toggleSelectBeneficiary: (beneficiary: BeneficiaryIdentity) => void;
};
export {};
