import * as React from 'react'; import { TreeNodeProps } from './TreeNode'; export interface DataNode { key: string; title: string; disabled?: boolean; selectable?: boolean; children?: DataNode[]; } export declare type IconType = React.ReactNode | ((props: TreeNodeProps) => React.ReactNode); export declare type Key = string | number; export declare type NodeElement = React.ReactElement & { selectHandle: HTMLSpanElement; type: { isTreeNode: boolean; }; }; export interface Entity { node: NodeElement; index: number; key: Key; pos: string | number; parent?: Entity; children?: Entity[]; }