import type { EntryPatch, IndexEntry, PackageId, PatchReportSink, Resource } from "./types/index.js"; export type PackageMatch = string | PackageId | ((pkg: PackageId) => boolean); export declare const matchPackage: (match: PackageMatch, pkg: PackageId) => boolean; export declare const applyPatches: | IndexEntry | Resource>(handlers: ((pkg: PackageId, value: T, report: PatchReportSink) => T | null | undefined)[] | undefined, pkg: PackageId, value: T, report: PatchReportSink) => T | null; export declare const excludeCanonical: (opts: { package?: PackageMatch; url: string; reason: string; }) => EntryPatch; //# sourceMappingURL=patches.d.ts.map