import type { TreeNode } from './lib/types.js'; /** Row pitch, with `space-y-0.5` folded in: absolutely positioned rows cannot use * sibling margins. useTreePitchAudit warns if this drifts from the DOM. */ export declare const TREE_ROW_HEIGHT = 30; interface TreeViewProps { rootNodes: TreeNode[]; parentToChildrenMap: Record; expandedPaths: ReadonlySet; selectedPath: string; loadingPaths: ReadonlySet; onToggleExpand: (path: string) => void; onSelect: (path: string, node: TreeNode) => void; onDropToFolder: (folderPath: string, files: FileList | DataTransferItemList) => void; onContextMenu: (e: React.MouseEvent, node: TreeNode) => void; onPreviewFile: (node: TreeNode) => void; /** The URL of a path; set, each row is a link to its path. */ pathHref?: ((path: string) => string) | undefined; /** A plain click on a row's link, which moves to its path on its own. */ onFollowLink?: ((node: TreeNode) => void) | undefined; /** Directories with pages left to fetch, and how to fetch them. */ paging?: { incompletePaths: ReadonlySet; isLoading: (path: string) => boolean; hasFailed: (path: string) => boolean; onLoadMore: (node: TreeNode) => void; } | undefined; } /** The sidebar tree, flattened and windowed. The flat array is the single source * of truth for rendering, arrow keys and ARIA. */ export declare function TreeView({ rootNodes, parentToChildrenMap, expandedPaths, selectedPath, loadingPaths, onToggleExpand, onSelect, onDropToFolder, onContextMenu, onPreviewFile, pathHref, onFollowLink, paging, }: TreeViewProps): import("react").JSX.Element; export {};