/** * Resolves the project license from the manifest and from a LICENSE / LICENSE.md file. * Used to report manifest-vs-file mismatch and as the baseline for dependency license compatibility. */ /** * Resolve project license from manifest and from LICENSE / LICENSE.md in manifest dir or git root. * Uses local pattern matching for LICENSE file identification (synchronous). * For more accurate backend-based identification, use identifyLicense() separately. * @param {string} manifestPath - path to manifest * @returns {{ fromManifest: string|null, fromFile: string|null, mismatch: boolean }} */ export declare function getProjectLicense(manifestPath: string): { fromManifest: string | null; fromFile: string | null; mismatch: boolean; }; export { findLicenseFilePath, readLicenseFile } from './license_utils.js'; /** * Call backend /licenses/identify endpoint to identify license from file. * @param {string} licenseFilePath - path to LICENSE file * @param {{}} [opts={}] - options (proxy, token, etc.) * @returns {Promise} - SPDX identifier or null */ export declare function identifyLicense(licenseFilePath: string, opts?: {}): Promise;