/** A node in a hierarchical file tree. Folders have `children`; files do not. */
export interface TreeNode {
    name: string;
    path: string;
    children?: TreeNode[];
}
/**
 * Builds a hierarchical {@link TreeNode} array from a flat list of file paths.
 *
 * Intermediate folder nodes are synthesized automatically from the path
 * segments. The input is sorted lexicographically before insertion so the
 * resulting tree is deterministic regardless of input order.
 *
 * The input contract is intentionally minimal — any object with a `path`
 * string works, allowing both `SkillFileEntry` and `WorkspaceFileEntry`
 * to use this utility without adaptation.
 */
export declare function buildFileTree(files: ReadonlyArray<{
    readonly path: string;
}>): TreeNode[];
//# sourceMappingURL=tree-node.d.ts.map