import React from 'react'; import { TreeNodeProps, TreeNodeState } from './iTree'; declare class TreeNode extends React.Component { static defaultProps: { title: string; tabIndexValue: number; mustExpandable: boolean; visibleCheckbox: boolean; root: {}; onRenderTitle: null; }; static isTreeNode: number; initExpand: boolean; clickEvents: string[]; titleHeight: number; renderFirst: number | undefined; checkbox: HTMLSpanElement | null; treeNodeContentWrapper: HTMLAnchorElement | null; doubleClickFlag: ReturnType | null; constructor(props: TreeNodeProps); componentDidMount(): void; UNSAFE_componentWillReceiveProps(nextProps: TreeNodeProps): void; autoExpandNode: (props: TreeNodeProps) => void; checkIfTriggerSyncFunc: (type: string) => boolean; onCheck: (e?: React.MouseEvent) => void; onSelect: (e?: React.MouseEvent) => void; syncCheckedAndSelectedStatusFunc: () => void; onDoubleClick: (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) => boolean; onDragLeave: (e: React.DragEvent) => void; onDrop: (e: React.DragEvent) => void; onDragEnd: (e: React.DragEvent) => void; onExpand: (e?: React.MouseEvent) => void; onKeyDown: (e: React.KeyboardEvent) => void; onSwitcherMouseDown: (e: React.MouseEvent) => void; onCheckboxMouseDown: (e: React.MouseEvent) => void; renderSwitcher(props: TreeNodeProps, expandedState: string): JSX.Element; renderCheckbox(props: TreeNodeProps): JSX.Element; renderChildren(props: TreeNodeProps): {} | null | undefined; getNodeChildren: () => React.ReactElement>[]; /** *判断是否为叶子节点,isLeaf的优先级>props.children。如果是异步加载是根据isLeaf的值进行判断的 * * @returns * @memberof TreeNode */ checkIsLeaf(): boolean; renderTreeNodeContent: (iconState: string, expandedState: string) => JSX.Element; renderNoopSwitcher: () => JSX.Element; getLiClassNames: (props: TreeNodeProps, expandedState: string, canRenderSwitcher: boolean, iconState: string) => string; getLiProps: (props: TreeNodeProps) => {}; renderIndents(props: TreeNodeProps): JSX.Element | null; render(): JSX.Element; } export default TreeNode;