1 | import type RcTree from 'rc-tree';
|
2 | import type { BasicDataNode } from 'rc-tree';
|
3 | import type { DataNode, Key } from 'rc-tree/lib/interface';
|
4 | import * as React from 'react';
|
5 | import type { TreeProps } from './Tree';
|
6 | export type ExpandAction = false | 'click' | 'doubleClick';
|
7 | export interface DirectoryTreeProps<T extends BasicDataNode = DataNode> extends TreeProps<T> {
|
8 | expandAction?: ExpandAction;
|
9 | }
|
10 | type DirectoryTreeCompoundedComponent = (<T extends BasicDataNode | DataNode = DataNode>(props: React.PropsWithChildren<DirectoryTreeProps<T>> & {
|
11 | ref?: React.Ref<RcTree>;
|
12 | }) => React.ReactElement) & {
|
13 | displayName?: string;
|
14 | };
|
15 | export interface DirectoryTreeState {
|
16 | expandedKeys?: Key[];
|
17 | selectedKeys?: Key[];
|
18 | }
|
19 | declare const ForwardDirectoryTree: DirectoryTreeCompoundedComponent;
|
20 | export default ForwardDirectoryTree;
|