/** Named by its own `package/package.json`, never by the file name. */ export type PackedEntry = { name: string; path: string; version: string; }; export declare const fileFromTarballBytes: (bytes: Buffer, member: string) => string | undefined; export declare const isRegistryDir: (value: string) => boolean; export declare const packedCatalogueIn: (dir: string) => Map; export declare const versionInTarball: (path: string) => string | undefined; export declare const fileInPacked: (entry: PackedEntry, member: string) => string | undefined; export declare const tarballUrlOf: (registry: string, name: string, version: string) => string; /** For a dry run, which has installed nothing for `node_modules` to hold. */ export declare const changelogFromRegistry: ({ name, registry, timeoutMs, version }: { name: string; registry: string; timeoutMs?: number; version: string; }) => Promise; export type FromRegistry = { kind: 'file'; text: string; } | { kind: 'none'; } | { kind: 'unreachable'; why: string; }; export declare const fileFromRegistry: ({ member, name, registry, timeoutMs, version }: { member: string; name: string; registry: string; timeoutMs?: number; version: string; }) => Promise;