import React from 'react'; import TreeLeaf from './tree-leaf'; import TreeFolder from './tree-folder'; declare const TreeValueType: ["directory", "leaf"]; export type TreeValue = { type?: (typeof TreeValueType)[number] | string; name: string; extra?: string; children?: Array; }; interface Props { value?: Array; initialExpand?: boolean; onClick?: (path: string) => void; selectableNodes?: boolean; className?: string; } declare const defaultProps: { initialExpand: boolean; type: "leaf"; className: string; }; type NativeAttrs = Omit, keyof Props>; export type TreeProps = Props & typeof defaultProps & NativeAttrs; type TreeComponent

= React.FC

& { Leaf: typeof TreeLeaf; File: typeof TreeLeaf; Folder: typeof TreeFolder; }; type ComponentProps = Partial & Omit & NativeAttrs; declare const _default: TreeComponent; export default _default;