UNPKG

histoire

Version:

A fast story book powered by Vite

17 lines • 998 B
/** Exact original file bytes retained privately for rollback. */ interface SnapshotFile { /** Absolute destination captured from the trusted project. */ file: string; /** Base64 bytes; null means the file did not exist. */ bytes: string | null; /** Original filesystem permission bits. */ mode?: number; } /** Original package manifests and locks across the project workspace boundary. */ export interface ProjectSnapshot { /** Guard boundary, including workspace-root lockfiles. */ root: string; /** Files present or absent before invoking the package manager. */ files: SnapshotFile[]; } /** Captures every supported lock name, including absent locks created on failure. */ export declare function snapshotProject(root: string): Promise<ProjectSnapshot>; /** Restores exact bytes; returns destinations that could not safely be restored. */ export declare function restoreProject(snapshot: ProjectSnapshot): Promise<string[]>; export {}; //# sourceMappingURL=snapshot.d.ts.map