export interface ContainedAtomicWriteOptions { containedRoot: string; beforeTemporaryOpen?: () => void | Promise; beforeCommit?: () => void | Promise; exclusive?: boolean; } export interface ContainedFileRemoveOptions { containedRoot: string; beforeRemove?: () => void | Promise; } export declare function publishFileExclusively(source: string, destination: string): Promise<{ linked: boolean; }>; export declare function atomicWriteContainedText(file: string, content: string, options: ContainedAtomicWriteOptions): Promise; export declare function atomicWriteContainedBytes(file: string, content: Uint8Array, options: ContainedAtomicWriteOptions): Promise; export declare function atomicWriteContainedJson(file: string, value: unknown, options: ContainedAtomicWriteOptions): Promise; /** * Remove one regular file only after checking that both its parent chain and * the file identity still belong to the managed root. This deliberately does * not recurse: callers that need tree cleanup must establish their own * manifest-bound ownership proof first. */ export declare function removeContainedFile(file: string, options: ContainedFileRemoveOptions): Promise; //# sourceMappingURL=contained-atomic-write.d.ts.map