import { ConditionInstance } from "../../../../../../../../MagicConditionEdit"; import { Expression } from "../../../../../../../../MagicConditionEdit/types/expression"; import { DataSourceOption } from "../../../../../../../../common/BaseUI/DropdownRenderer/Reference"; import React from "react"; import { IfBranch } from "../../helpers"; type BranchItemProps = React.PropsWithChildren<{ value: IfBranch; onChange: (value: Expression.Condition | undefined, branchIndex: number) => void; showTrash: boolean; isLast: boolean; onAddItem: (beforeIndex: number) => void; onDeleteItem: (index: number) => void; currentIndex: number; conditionRefsMap: { id: string; ref: React.RefObject; }[]; expressionDataSource: DataSourceOption[]; }>; export default function BranchItem({ value, onChange, showTrash, isLast, onAddItem, onDeleteItem, currentIndex, conditionRefsMap, expressionDataSource, }: BranchItemProps): React.JSX.Element; export {};