import React, { Key } from 'react'; import { PureComponent } from '../../utils/component'; import DatumTree, { KeygenParams } from '../../utils/Datum/Tree'; import { UpdateEvent, ITreeProps } from './type'; import Directory from './Directory'; interface TreeState { active: React.Key; } declare class Tree extends PureComponent, TreeState> { nodes: Map; lists: Map; datum: DatumTree; static displayName: string; static Directory: typeof Directory; static defaultProps: { data: any[]; nodeContentTextTag: string; line: boolean; defaultExpanded: any[]; defaultValue: any[]; mode: number; childrenKey: string; dragImageStyle: {}; childrenClass(): void; leafClass(): void; }; get active(): React.Key; constructor(props: any); componentDidUpdate(prevProps: ITreeProps): void; keygen: ({ data, index, parentKey }: KeygenParams) => any; bindNode: (id: Key, update: UpdateEvent) => { active: boolean; }; unbindNode: (id: Key) => void; bindList: (id: Key, update: UpdateEvent) => { expanded: boolean; }; unbindList: (id: Key) => void; handleActive: (activeKey?: React.Key) => void; handleExpanded: (expanded: any) => void; handleNodeClick: (node: any, id: Key) => void; handleToggle: (id: Key) => void; handleDrop: (id: Key, targetId: Key, position: number) => void; render(): JSX.Element; } export default Tree;