/** * Packages which ship no license declaration in their package.json, but whose license has been confirmed by reading * what they publish. Only add an entry after checking that version yourself, and record where the license was found. * * Keys are exact `name@version`, as a later release can change license. A declared license always wins over this list, * so an entry can never hide what a package says about itself. */ export declare const KNOWN_PACKAGE_LICENSES: Record; export declare function knownPackageLicense(name: string | undefined, version: string | undefined): string | undefined; /** * Packages which declare a license that is not a valid SPDX expression, mapped to what the license text they publish * actually is. Unlike KNOWN_PACKAGE_LICENSES this overrides what a package says about itself, so it is only consulted * when the declaration cannot be parsed, and can never turn a real license into a more convenient one. * * Only add an entry after reading the license text shipped in that exact version, and record what identified it. * Keys are exact `name@version`, so a later release declaring something different is unaffected. */ export declare const CORRECTED_PACKAGE_LICENSES: Record; export declare function correctedPackageLicense(name: string | undefined, version: string | undefined): string | undefined;