import type { RegistriesByPrefix, RegistriesByScope } from '@pnpm/types'; export declare function pickRegistryForPackage(registriesByScope: RegistriesByScope, packageName: string, bareSpecifier?: string): string; /** * URL prefixes a recorded tarball URL is matched against to pick the registry * to verify it with, longest first. * * Adding a built-in registry is therefore not a local change: it also decides * where verification traffic goes for entries that name no registry. Memoized * on the map because the caller sits behind a per-package walk. */ export declare function namedRegistryTarballPrefixes(registriesByPrefix: RegistriesByPrefix): readonly string[];