import * as React from 'react'; import { TreeContextProps } from './contextTypes'; import { IconType, Key, DataNode } from './interface'; export interface TreeNodeProps { eventKey?: Key; prefixCls?: string; className?: string; style?: React.CSSProperties; expanded?: boolean; selected?: boolean; checked?: boolean; loaded?: boolean; loading?: boolean; halfChecked?: boolean; title?: React.ReactNode | ((data: DataNode) => React.ReactNode); dragOver?: boolean; dragOverGapTop?: boolean; dragOverGapBottom?: boolean; pos?: string; domRef?: React.Ref; /** New added in Tree for easy data access */ data?: DataNode; 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: () => "open" | "close"; hasChildren: () => boolean; isLeaf: () => boolean; isDisabled: () => boolean; isCheckable: () => {}; syncLoadData: (props: any) => void; isSelectable(): boolean; renderSwitcher: () => JSX.Element; renderCheckbox: () => JSX.Element; renderIcon: () => JSX.Element; renderSelector: () => JSX.Element; render(): JSX.Element; } declare const ContextTreeNode: React.FC; export { InternalTreeNode }; export default ContextTreeNode;