/** Reports whether a directory is the monorepo root, which the workspace manifest's presence marks. */ export declare function isMonorepoRoot(dir: string): boolean; /** * Finds the monorepo root by walking up from `startDir` to find `pnpm-workspace.yaml`. * Throws if no workspace root is found. */ export declare function findMonorepoRoot(startDir?: string): string; /** * Reads the workspace patterns from `pnpm-workspace.yaml` and resolves them to absolute package * directories, applying pnpm's pattern semantics — including `!`-prefixed exclusions. * * Returns an empty array when the manifest declares no usable `packages` list, and throws when * `monorepoRoot` holds no manifest at all — the caller named a directory that is not a monorepo root. */ export declare function getWorkspacePackageDirs(monorepoRoot: string): string[]; /** * Reads the `overrides` block from the monorepo root's `pnpm-workspace.yaml`, the site pnpm reads an override * from. * * Returns nothing when the manifest or the block is missing, and drops an entry whose value is not a string. */ export declare function readWorkspaceOverrides(monorepoRoot: string): Record | undefined; /** * Reads the manifest `name` each of the given package directories declares, which is what a `-F` pattern * matches. * * A directory whose manifest is missing, unparseable, or nameless contributes nothing. The sweep runs for a * diagnostic's sake, so one malformed manifest elsewhere in the workspace must not replace the diagnostic the * reader asked for with a failure of its own. */ export declare function readWorkspacePackageNames(packageDirs: readonly string[]): string[];