import { type PackageSnapshot } from '@pnpm/lockfile.utils'; import type { StoreIndex } from '@pnpm/store.index'; import type { PackageManifest, RegistriesByScope } from '@pnpm/types'; import type { LicensePackage } from './licenses.js'; export declare function readPkg(pkgPath: string): Promise; export interface PackageInfo { id: string; name?: string; version?: string; depPath: string; snapshot: PackageSnapshot; registriesByScope: RegistriesByScope; registriesByPrefix?: Record; } export interface GetPackageInfoOptions { storeDir: string; storeIndex: StoreIndex; virtualStoreDir: string; virtualStoreDirMaxLength: number; dir: string; modulesDir: string; } export type PkgInfo = { from: string; description?: string; } & Omit; /** * Returns the package manifest information for a give package name and path * @param pkg the package to fetch information for * @param opts the fetching options */ export declare function getPkgInfo(pkg: PackageInfo, opts: GetPackageInfoOptions): Promise;