/** * Package URL matching functions for comparing detected packages * against declared compatible packages. * * @experimental This API is unstable and may change without notice. * @packageDocumentation */ import type { PackageUrlParts } from "./package-url.js"; /** * Check whether two purl parts share the same identity (type, namespace, name). * Version is ignored. * * @experimental This API is unstable and may change without notice. */ export declare const purlIdentityMatch: (a: PackageUrlParts, b: PackageUrlParts) => boolean; /** * Check whether a detected purl matches a declared compatible purl. * * Matching rules: * - Identity (type, namespace, name) must match exactly * - Versionless declaration matches any detected version * - Versionless detection matches any declaration * - Both exact versions match only if equal * * @experimental This API is unstable and may change without notice. */ export declare const purlMatch: (detected: PackageUrlParts, declared: PackageUrlParts) => boolean; //# sourceMappingURL=purl-match.d.ts.map