/*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ /** * Map of catalogName → { packageName → versionRange }. * The default catalog (defined under `catalog:` in pnpm-workspace.yaml) is stored under the key "default". */ export type PnpmCatalogMap = Map>; /** * Reads the pnpm-workspace.yaml at `workspaceRoot` and returns the catalog entries. * Returns an empty map if the file doesn't exist or has no catalogs. */ export declare function readPnpmCatalogs(workspaceRoot: string): PnpmCatalogMap; /** * If `version` starts with "catalog:", looks up the real version from `catalogs`. * Otherwise returns `version` unchanged. * * Resolution rules (per pnpm spec): * - `catalog:` or `catalog:default` → look in the "default" entry (the `catalog:` section) * - `catalog:X` → look in the `catalogs.X` entry * * @throws If the referenced catalog or package is not found. */ export declare function resolveCatalogVersion(packageName: string, version: string, catalogs: PnpmCatalogMap): string; //# sourceMappingURL=pnpmCatalog.d.ts.map