export interface SnapshotPaths { gitDir: string; workTree: string; } /** Idempotent init. Creates the bare repo + .gitignore-like inclusion gate. */ export declare function ensureSnapshotRepo(workspace: string, orgSlug: string): void; /** * Commit the current state of `/memory/` and `/workflows/`. Returns * the new commit SHA (or null if there was nothing to commit). */ export declare function commitSnapshot(workspace: string, orgSlug: string, message: string): string | null; export interface SnapshotEntry { sha: string; ts: string; subject: string; } /** Return the most recent N commits, newest first. */ export declare function listSnapshots(workspace: string, orgSlug: string, limit?: number): SnapshotEntry[]; /** * Revert the snapshot tree to a specific commit. Affects only the tracked * trees (memory/, workflows/, artifacts/), leaving the user's actual repos * untouched. * * Implementation: `git checkout -- ` per tracked tree then a * follow-up commit recording the revert. */ export declare function revertToSnapshot(workspace: string, orgSlug: string, targetSha: string, reason?: string): { ok: boolean; newSha?: string; error?: string; };