import { n as __name } from "./chunk-O_arW02_.js"; import { k as File } from "./Fabric-DcPYjTt7.js"; //#region src/utils/TreeNode.d.ts type BarrelData = { file?: File; path: string; name: string; }; type Graph = { nodes: Array<{ id: string; label: string; }>; edges: Array<{ from: string; to: string; }>; }; declare class TreeNode { #private; data: TData; parent?: TreeNode; children: Array>; constructor(data: TData, parent?: TreeNode); addChild(data: TData): TreeNode; getChildByName(name: string): TreeNode | undefined; get leaves(): Array>; forEach(callback: (node: TreeNode) => void): this; findDeep(predicate: (node: TreeNode) => boolean): TreeNode | undefined; static toGraph(root: TreeNode): Graph; static fromFiles(files: Array, rootFolder?: string): TreeNode | null; } //#endregion //#region src/composables/useNodeTree.d.ts type ComponentNode = { type: string; props: Record; }; /** * Accesses the current node tree for tracking component hierarchy. * * Use this composable to inspect or manipulate the component tree structure. * Returns null if not within a component that provides NodeTreeContext. * * @returns The current TreeNode or null * * @example * ```ts * const nodeTree = useNodeTree() * if (nodeTree) { * const childTree = nodeTree.addChild({ type: 'MyComponent', props: {} }) * } * ``` */ declare function useNodeTree(): TreeNode | null; //#endregion export { useNodeTree as n, TreeNode as r, ComponentNode as t }; //# sourceMappingURL=useNodeTree-c9qOt3mv.d.ts.map