import type { WorkspaceManager } from "../types/WorkspaceManager"; /** * Get the root directory of a monorepo, defined as the directory where the workspace/monorepo manager * config file is located. (Does not rely in any way on git, and the result is cached by `cwd`.) * * @param cwd Start searching from here * @param managerOverride Search for only this manager's config file * * @returns Workspace manager root directory. Returns undefined (and verbose logs) on error or if * not found, unless `throwOnError` is set. */ export declare function getWorkspaceManagerRoot(cwd: string, managerOverride?: WorkspaceManager): string | undefined; export declare function getWorkspaceManagerRoot(cwd: string, managerOverride: WorkspaceManager | undefined, options?: { /** Throw if there's an error or if the root is not found */ throwOnError: true; }): string;