import { Tree } from '@nx/devkit'; /** * Resolve a project's root, preferring the Tree (which sees project.json / * package.json projects — and is all that's available in generator unit tests) * and falling back to the project graph, the only source that sees an * inference-only Worker: one with no project.json that the createNodes plugin * registers from its wrangler config. `getProjects` deliberately skips * inference, so without this fallback such Workers are invisible to a generator. * * Throws with the available project names when the name matches neither source. * When the graph itself fails to build (a broken sibling project, a plugin * failure), the error is surfaced — naming both the project and the real cause — * rather than swallowed into a misleading "project not found". */ export declare function resolveProjectRootOrThrow(tree: Tree, name: string): Promise;