UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

13 lines (12 loc) 441 B
import type { TreeNodeData } from '../Tree'; import type { TreeExpandedState } from '../Tree/use-tree'; export interface TreeSelectFlatNode { node: TreeNodeData; level: number; parent: string | null; hasChildren: boolean; expanded: boolean; isLastChild: boolean; lineGuides: boolean[]; } export declare function flattenTreeSelectData(data: TreeNodeData[], expandedState: TreeExpandedState): TreeSelectFlatNode[];