import type { TreeNode } from './types'; /** * All node ids that already have at least one known child - the eager * "expand all" target set. A node whose children haven't been resolved yet * (lazy mode, before its first load) is skipped: expanding it needs a * fetch, not a state flip, so it isn't safe to include here. */ export declare function collectExpandableIds(nodes: TreeNode[]): string[]; /** * DFS chain of ancestor ids leading to `targetId` within an already-known * tree - pass the result to `defaultExpandedIds`/`expandedIds` to reveal a * specific node (mirrors the Sidebar's `findExpandableParentChain`). Only * searches subtrees already present via `children`, so in lazy mode this * can only find a target inside branches already loaded. */ export declare function findAncestorIds(nodes: TreeNode[], targetId: string): string[];