import './FileExplorerComponent.scss'; import React from 'react'; interface MenuOptionProps { title: string; action(sub: Tree, path: string[]): void; } export interface FileExplorerProps { tree: Tree[] | Tree; onTransformNode(node: Tree, path: string[]): Tree; onFetchChildren?(node: Tree, path: string[]): Promise; menuOptions: { [key: string]: MenuOptionProps[]; }; expandedNodes: boolean; highlight: string; } export interface Tree { id: string; name: string; type: string; transformed: boolean; lazy?: boolean; icon?: string; textIcon?: string; children?: Tree[]; } export declare const FileExplorer: (props: FileExplorerProps) => React.JSX.Element; export {};