import type { GitDelta } from "./types"; export interface UntrackedEntry { path: string; size: number; sha256: string; } export interface PreserveResult { gitDelta: GitDelta; trackedDiff: string; trackedDiffSha256: string; untrackedManifest: UntrackedEntry[]; stashRef: string | null; snapshotComplete: boolean; } /** * Capture + snapshot a (possibly dirty) worktree without mutating it. Safe to call on a clean * tree (returns empty evidence). Never deletes, resets, or cleans. */ export declare function preserveDirtyWorktree(workspace: string): PreserveResult;