import type { LockfileObject } from '@pnpm/lockfile.fs'; import type { DependenciesField, IncludedDependencies, ProjectId, ProjectManifest, RegistriesByScope, SupportedArchitectures } from '@pnpm/types'; export interface LicensePackage { belongsTo: DependenciesField; version: string; name: string; /** * Named-registry alias the package was resolved from (lockfile format * 9.1), or `undefined` for the default/scope registry. Part of the * package's identity: the same name and version served by two * registries are two distinct artifacts with their own licenses. */ registryName?: string; license: string; licenseContents?: string; author?: string; homepage?: string; description?: string; repository?: string; path?: string; } export declare function findDependencyLicenses(opts: { ignoreDependencies?: Set; include?: IncludedDependencies; lockfileDir: string; manifest: ProjectManifest; storeDir: string; virtualStoreDir: string; virtualStoreDirMaxLength: number; modulesDir?: string; registriesByScope: RegistriesByScope; registriesByPrefix?: Record; wantedLockfile: LockfileObject | null; includedImporterIds?: ProjectId[]; supportedArchitectures?: SupportedArchitectures; }): Promise;