/** * This file tree component recursively renders itself to present a file tree. * To keep this performant the nodes (DirectoryNode and FileNode) must make use of * useCallback and useMemo. This allows the React.memo around FileTreeMode to function * and skip rendering unchanged components. */ export type FileTreeNode = { name: string; size?: bigint; childNodes?: FileTreeNode[]; }; type FileTreeProps = { nodes: FileTreeNode[]; selectedFilePath?: string[]; onFileSelected: (selectedFilePath: string[]) => void; onFileDblClicked?: (selectedFilePath: string[]) => void; _isChildNode?: boolean; }; export declare const FileTree: ({ nodes, selectedFilePath, onFileSelected, onFileDblClicked, _isChildNode, }: FileTreeProps) => import("react/jsx-runtime").JSX.Element; export {};