/** Packuments over HTTP and real gzipped tars: the proof cannot stub any of manifest, registry and installer. */ export type ScratchRegistry = { asked: string[]; close: () => Promise; url: string; }; /** A package of its own, never a second content for a served name@version: on bun 1.4.0 the global cache answers by `name@version`, so repacked bytes install the old ones (pnpm keys by integrity). */ export type Gated = { option: string; package: string; rule: string; }; /** yarn 1.22.22 hangs on a directory entry, so files only under `package/`. */ export declare const packTarball: ({ dir, files, manifest }: { dir: string; files?: Record; manifest: Record & { name: string; version: string; }; }) => string; export declare const startScratchRegistry: ({ changelogs, dir, manifests, packages, packedFiles, published, refusesWithout, scripts }: { changelogs?: Record; dir: string; manifests?: Record>; packedFiles?: Record<`${string}@${string}`, Record>; packages: Record; published?: Record>; refusesWithout?: Gated; scripts?: Record>; }) => Promise;