import React, { ComponentType } from 'react'; import { KeygenResult } from '../@types/common'; import { TableProps, GetTreeExpandProps } from './Props'; interface treeExpandState { expandKeys: Map; } declare const _default: (WrappedComponent: React.ComponentType>) => { new (props: GetTreeExpandProps, DataItem>): { changedByExpand: boolean; expandLevel: Map; componentDidUpdate(): void; getTreeIndent(): number | undefined; getExpandKeys(): Map; getExpandData(): DataItem[]; handleTreeExpand(data: DataItem, index: number): void; render(): JSX.Element; context: any; setState(state: treeExpandState | ((prevState: Readonly, props: Readonly, DataItem>>) => treeExpandState | Pick | null) | Pick | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly, DataItem>> & Readonly<{ children?: React.ReactNode; }>; state: Readonly; refs: { [key: string]: React.ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly, DataItem>>, nextState: Readonly, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly, DataItem>>, prevState: Readonly): any; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly, DataItem>>, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly, DataItem>>, nextContext: any): void; componentWillUpdate?(nextProps: Readonly, DataItem>>, nextState: Readonly, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly, DataItem>>, nextState: Readonly, nextContext: any): void; }; defaultProps: { defaultTreeExpandKeys: never[]; }; getMapFromArray(arr: KeygenResult[]): Map; contextType?: React.Context | undefined; }; export default _default;