import * as React from 'react'; import { TreeContextProps } from './contextTypes'; import { IconType, Key, DataNode, BasicDataNode } from './interface'; export interface TreeNodeProps { eventKey?: Key; prefixCls?: string; className?: string; style?: React.CSSProperties; id?: string; expanded?: boolean; selected?: boolean; checked?: boolean; loaded?: boolean; loading?: boolean; halfChecked?: boolean; title?: React.ReactNode | ((data: TreeDataType) => React.ReactNode); dragOver?: boolean; dragOverGapTop?: boolean; dragOverGapBottom?: boolean; pos?: string; domRef?: React.Ref; /** New added in Tree for easy data access */ data?: TreeDataType; isStart?: boolean[]; isEnd?: boolean[]; active?: boolean; onMouseMove?: React.MouseEventHandler; isLeaf?: boolean; checkable?: boolean; selectable?: boolean; disabled?: boolean; disableCheckbox?: boolean; icon?: IconType; switcherIcon?: IconType; children?: React.ReactNode; } export interface InternalTreeNodeProps extends TreeNodeProps { context?: TreeContextProps; } export interface TreeNodeState { dragNodeHighlight: boolean; } declare class InternalTreeNode extends React.Component { state: { dragNodeHighlight: boolean; }; selectHandle: HTMLSpanElement; componentDidMount(): void; componentDidUpdate(): void; onSelectorClick: (e: React.MouseEvent) => void; onSelectorDoubleClick: (e: React.MouseEvent) => void; onSelect: (e: React.MouseEvent) => void; onCheck: (e: React.MouseEvent) => void; onMouseEnter: (e: React.MouseEvent) => void; onMouseLeave: (e: React.MouseEvent) => void; onContextMenu: (e: React.MouseEvent) => void; onDragStart: (e: React.DragEvent) => void; onDragEnter: (e: React.DragEvent) => void; onDragOver: (e: React.DragEvent) => void; onDragLeave: (e: React.DragEvent) => void; onDragEnd: (e: React.DragEvent) => void; onDrop: (e: React.DragEvent) => void; onExpand: React.MouseEventHandler; setSelectHandle: (node: any) => void; getNodeState: () => "close" | "open"; hasChildren: () => boolean; isLeaf: () => boolean; isDisabled: () => boolean; isCheckable: () => string | number | boolean | React.ReactElement> | React.ReactFragment; syncLoadData: (props: any) => void; isSelectable(): boolean; isDraggable: () => boolean; renderDragHandler: () => React.JSX.Element; renderSwitcherIconDom: (isLeaf: boolean) => React.ReactNode; renderSwitcher: () => React.JSX.Element; renderCheckbox: () => React.JSX.Element; renderIcon: () => React.JSX.Element; renderSelector: () => React.JSX.Element; renderDropIndicator: () => React.ReactNode; render(): React.JSX.Element; } declare const ContextTreeNode: React.FC; export { InternalTreeNode }; export default ContextTreeNode;