/** * Monorepo Detection Utility * * Detects monorepo setups by checking for tool-specific config files. * Returns the detected tool, workspace globs, resolved workspace paths, * and package manager. Returns null for single-project repos. * * Detection priority: turborepo → nx → lerna → pnpm → npm → yarn * * This runs locally (MCP stdio transport only). For SSE/cloud transport * the caller should skip detection and return null. */ export type MonorepoTool = 'turborepo' | 'nx' | 'lerna' | 'pnpm' | 'npm' | 'yarn'; export interface MonorepoInfo { /** Detected monorepo tool */ type: MonorepoTool; /** Raw workspace glob patterns (e.g., ["packages/*", "apps/*"]) */ workspaces: string[]; /** Resolved directory paths that match the workspace globs */ resolvedPaths: string[]; /** Detected package manager */ packageManager: string; } /** * Detect monorepo configuration from a project root directory. * * @param projectRoot Absolute or relative path to the project root. * @returns MonorepoInfo if a monorepo setup is detected, null otherwise. */ export declare function detectMonorepo(projectRoot: string): MonorepoInfo | null; //# sourceMappingURL=monorepo-detector.d.ts.map