import type { CatalogEntry } from './types.js'; export declare const catalogDir: (root: string) => string; export declare const packagesDir: (root: string) => string; /** sha256 over (u32 pathLen, path, u64 byteLen, bytes) for every file, paths sorted by code unit. */ export declare function packageDigest(dir: string): string; /** `//`, proven to stay inside the store after realpath. */ export declare function resolvePackageDir(root: string, entry: Pick): string; export type DigestCheck = { ok: true; dir: string; } | { ok: false; reason: 'missing-package' | 'digest-mismatch' | 'escaping-path'; }; export declare function verifyEntry(root: string, entry: Pick): DigestCheck; //# sourceMappingURL=digest.d.ts.map