export declare function sha256(value: string | Buffer): string; export declare function canonicalJson(value: unknown): string; export declare function hashObject(value: unknown): string; export declare function readText(path: string): string; export declare function readJson(path: string): T; export declare function prettyJson(value: unknown): string; export declare function fileHash(path: string): string | null; export declare function safePath(root: string, relativePath: string): string; export declare function atomicWrite(path: string, content: string): void; /** Write a receipt exactly once and make both file and parent directory durable. */ export declare function durableWriteOnce(path: string, content: string, mode?: number): void; export declare function assertCurrentHash(path: string, expected: string | null): void; export declare function withoutHash(value: T): Omit; //# sourceMappingURL=fs.d.ts.map