import { TreeLike } from './tree'; export type VisitTreeItem = { path: string; isFile: boolean; }; /** * Visit all files in a tree. * * usage example: * * for (const {path, isFile} of VisitTree(tree, projectRoot)) { * if (isFile && path.endsWith('.component.ts')) { * return true; * } * } * * @param tree nx Tree instance * @param dir directory to start the visits default to the root of the tree * @param ignoreFolders folders to ignore */ export declare function VisitTree(tree: TreeLike, dir?: string, ignoreFolders?: (string | RegExp)[]): Generator;