import { ReactNode } from 'react'; /** * Minimal tree node shape */ type TreeDataItem = { id: string; parentId: string | null; label: string; isCollapsible?: boolean; actions?: ReactNode; disable?: boolean; selectable?: boolean; [key: string]: unknown; }; /** * Tree node with computed metadata */ type TreeDataItemWithMeta = T & { indent: number; isLast: boolean; ancestors: T[]; }; export type { TreeDataItem, TreeDataItemWithMeta };