/** * SHA-256 helpers used by the install command to verify manifest hashes. * * Pure node:crypto + node:fs streaming so the CLI stays zero-dep and uses * O(1) memory regardless of file size (spritesheets can be a few MB). */ import type { Readable } from "node:stream"; /** * Hex-encoded SHA-256 of a file on disk. Streams the file through a hash * so it can verify multi-MB sprite sheets without loading them into RAM. */ export declare function sha256OfFile(path: string): Promise; /** * Hex-encoded SHA-256 of a Readable stream. Consumes the stream to * completion. The caller is responsible for ensuring the stream is * actually readable (e.g. not already consumed). */ export declare function sha256OfStream(stream: Readable): Promise; /** * Hex-encoded SHA-256 of an in-memory Buffer. Convenience wrapper for * tests and small payloads (manifest JSON, fixture bytes). */ export declare function sha256OfBuffer(buf: Buffer): string; //# sourceMappingURL=hash.d.ts.map