/** * Project markers used to detect project root directories. * Listed roughly in order of specificity/reliability. * Note: '.git' is handled specially to support worktrees. */ export declare const PROJECT_MARKERS: readonly [".hg", ".svn", "package.json", "deno.json", "deno.jsonc", "pyproject.toml", "setup.py", "Pipfile", "setup.cfg", "poetry.lock", "Cargo.toml", "go.mod", "pom.xml", "build.gradle", "build.gradle.kts", "build.sbt", "project.clj", "Gemfile", "composer.json", "nuget.config", "packages.config", "mix.exs", "rebar.config", "Package.swift", "stack.yaml", "cabal.project", "build.sc", "Makefile", "CMakeLists.txt", "meson.build", "BUILD", "BUILD.bazel", "WORKSPACE", "WORKSPACE.bazel", "Justfile", "Taskfile.yml", "Taskfile.yaml", "Dockerfile", "docker-compose.yml", "docker-compose.yaml", ".editorconfig", ".prettierrc", ".eslintrc.json", ".eslintrc.js", ".eslintrc.cjs", "tsconfig.json", "jsconfig.json"]; /** * Find the project root by searching upward from startDir for project markers. * Stops at the home directory or filesystem root. * * For git repositories with worktrees, this returns the MAIN worktree root, * allowing all worktrees to share the same project root. * * @param startDir - Directory to start searching from * @returns The project root directory path, or null if not found */ export declare function findProjectRoot(startDir: string): string | null; /** * Clear the project root cache. Useful for testing. */ export declare function clearProjectRootCache(): void; //# sourceMappingURL=project-root.d.ts.map