import { default as default_2 } from 'react'; import { JSX as JSX_2 } from 'react/jsx-runtime'; export declare function findNode(nodeId: string, targetNodes: TNode[]): TNode | null; export declare function findNodeAndRemove(nodeId: string, targetNodes: TNode[]): TNode | null; export declare function findParentNode(targetNode: TNode, nodes: TNode[]): TNode | null; export declare function findTopmostParentNode(targetNode: TNode, nodes: TNode[]): TNode | null; export declare function flattenTree(nodes: TNode[], result?: TNode[]): TNode[]; export declare function getAllDescendantIds(node: TNode): string[]; export declare function insertNodeBelow(node: TNode, targetNode: TNode, treeData: TNode[]): null | undefined; export declare const moveNode: (draggedNodes: TNode[], targetNode: TNode, treeData: TNode[], fileExplorerMode: boolean | undefined, drop: string, sourceTreeId: string, destinationTreeId: string) => null | undefined; export declare const renameNode: (nodeId: string, newName: string, treeData: TNode[]) => void; export declare interface TNode { id: string; name: string; isFolder: boolean; parent: string | null; prevParent?: string | null; children: TNode[]; data?: T; } export declare const TreeNode: default_2.FC; export declare const VTree: ({ data, setData, onClick: onClickCallback, openAll, canDrag, canDrop, onDrop, onSelectionChange, containerHeight, renderNode, fileExplorerMode, dataSetName, onNodeRename, allowInteractWith, }: VTreeProps) => JSX_2.Element; declare interface VTreeProps { data: TNode[]; setData: default_2.Dispatch[]>>; onClick?: (event: default_2.MouseEvent, node: TNode, selectedNodes: TNode[]) => void; containerHeight?: number; openAll?: boolean; canDrag?: (dragSource: TNode) => boolean; canDrop?: (draggedNodes: TNode[], dropTarget: TNode) => boolean; onDrop?: (draggedNodes: TNode[], dropTarget: TNode, treeId: string, currentTreeId: string, droppedOnRoot: boolean) => void; onSelectionChange?: (selectedNodes: TNode[]) => void; renderNode?: (text: string) => default_2.ReactNode; onNodeRename?: (node: TNode, newName: string) => void; fileExplorerMode?: boolean; dataSetName: string; allowInteractWith?: string[]; } export { }