import { type OwnedFileExpectation, type OwnedFileRead, type OwnedFileStep } from "../internals/owned-file-transaction.js"; import { MAX_MATERIALIZED_FILE_BYTES } from "./materialization-receipt.js"; export { MAX_MATERIALIZED_FILE_BYTES }; export declare const MATERIALIZED_CONTENT_MODE = 420; export declare const MATERIALIZATION_RECEIPT_MODE = 384; export type DestinationRead = OwnedFileRead; export type DestinationExpectation = OwnedFileExpectation; export interface MaterializationCommitStep extends OwnedFileStep { } /** The destination root must be an absolute, real, non-symlinked directory. */ export declare function materializationRoot(root: string): string; export declare function inspectDestination(rootReal: string, path: string): DestinationRead; /** The write-path read: an unreadable destination refuses rather than degrading. */ export declare function readLiveDestination(rootReal: string, path: string): Buffer | undefined; /** Write bounded bytes through a same-directory exclusive temporary file and rename. */ export declare function writeDestinationAtomic(rootReal: string, path: string, contents: Buffer, mode: number, rename?: (from: string, to: string) => void): void; export declare function removeDestination(rootReal: string, path: string): void; /** Commit the already-planned ordered ECC steps with receipt order unchanged. */ export declare function commitMaterializationSteps(rootReal: string, steps: readonly MaterializationCommitStep[], rename?: (from: string, to: string) => void): void;