import type { WorkspaceInfos } from "../types/WorkspaceInfo"; import type { WorkspaceManager } from "../types/WorkspaceManager"; /** * Get an array with names, paths, and package.json contents for each package ("workspace" in * npm/yarn/pnpm terms) within a monorepo. The list of included packages is based on the * workspace/monorepo manager's config file. * * Notes: * - The workspace manager, root, and list of package paths for `cwd` are cached internally, * but the package contents are not. * - To get an object with package names as keys, use `getPackageInfos` instead. * * @param managerOverride Workspace/monorepo manager to use instead of auto-detecting * * @returns Array of workspace package infos, or undefined if not found (not a monorepo) * or there's any issue. (Logs verbose warnings instead of throwing on error.) */ export declare function getWorkspaceInfos(cwd: string, managerOverride?: WorkspaceManager): WorkspaceInfos | undefined; /** * Get an array with names, paths, and package.json contents for each package ("workspace" in * npm/yarn/pnpm terms) within a monorepo. The list of included packages is based on the * workspace/monorepo manager's config file. * * Notes: * - **WARNING**: As of writing, this will start promises to read all package.json files in * parallel, without direct concurrency control. * - The workspace manager, root, and list of package paths for `cwd` are cached internally, * but the package contents are not. * - To get an object with package names as keys, use `getPackageInfosAsync` instead. * * @param managerOverride Workspace/monorepo manager to use instead of auto-detecting * * @returns Array of workspace package infos, or undefined if not found (not a monorepo) * or there's any issue. (Logs verbose warnings instead of throwing on error.) */ export declare function getWorkspaceInfosAsync(cwd: string, managerOverride?: WorkspaceManager): Promise;