/** * Walk up from `startDir` looking for a `.git` directory. * Returns the directory containing `.git`, or undefined. */ export declare function findGitRoot(startDir: string): string | undefined; /** * Walk up from `startDir` looking for `package.json`. * Returns the directory containing it, or undefined. */ export declare function findProjectRoot(startDir: string): string | undefined; /** * Find the workspace root — the nearest ancestor that has workspace * configuration (pnpm-workspace.yaml or package.json#workspaces). * Returns undefined if not in a workspace. */ export declare function findWorkspaceRoot(startDir: string): string | undefined; /** * Get workspace member directories. Reads pnpm-workspace.yaml or * package.json#workspaces and expands globs to actual directories. */ export declare function getWorkspaceMembers(workspaceRoot: string): string[]; /** * Check if a directory has any `@alloy-js/*` dependencies * (dependencies, devDependencies, or peerDependencies). */ export declare function hasAlloyDependencies(dir: string): boolean; /** * Collect all `node_modules/@alloy-js/` directories to scan for packages. * Searches cwd, workspace members, and ancestors up to git root. */ export declare function collectAlloySearchDirs(cwd: string): string[]; //# sourceMappingURL=workspace.d.ts.map