/** * Adapts the Nx Tree to the kos-codegen-core CodegenFileSystem interface. * * This enables generator logic written against CodegenFileSystem to run * within the Nx generator pipeline (operating on the in-memory Tree). */ import type { Tree } from "@nx/devkit"; import type { CodegenFileSystem } from "@kosdev-code/kos-codegen-core"; export declare class NxTreeAdapter implements CodegenFileSystem { private readonly tree; readonly root: string; constructor(tree: Tree); read(filePath: string): string | null; write(filePath: string, content: string): void; exists(filePath: string): boolean; delete(filePath: string): void; listFiles(dirPath: string): string[]; private walkTree; private tryGetChildren; } //# sourceMappingURL=nx-tree-adapter.d.ts.map