/** * Transient file backup helpers. * * @experimental This API is unstable and may change without notice. */ import * as Effect from "effect/Effect"; import * as FileSystem from "effect/FileSystem"; import * as Path from "effect/Path"; import { type AppError } from "../app-error/index.js"; export interface TransientFileBackup { readonly directory: string; readonly path: string; } export declare const createTransientFileBackup: (args: { readonly sourcePath: string; readonly content: string; readonly tempPrefix: string; }) => Effect.Effect; export declare const removeTransientFileBackup: (backup: TransientFileBackup) => Effect.Effect; export declare const runWithTransientFileBackup: (args: { readonly sourcePath: string; readonly oldRaw: string; readonly newRaw: string; readonly tempPrefix: string; readonly operation: Effect.Effect; }) => Effect.Effect; //# sourceMappingURL=transient-backup.d.ts.map