/** * Git operations module – wraps git CLI for rollback, audit trail, * and workspace state management. */ export interface GitStatusResult { ok: boolean; is_repo: boolean; clean: boolean; staged: string[]; unstaged: string[]; untracked: string[]; branch: string; output: string; error?: string; } export interface GitCommitResult { ok: boolean; hash?: string; message: string; files_committed: number; output: string; error?: string; } export interface GitDiffResult { ok: boolean; diff: string; files_changed: number; insertions: number; deletions: number; stat: string; error?: string; } export interface GitLogEntry { hash: string; date: string; message: string; } export interface GitLogResult { ok: boolean; entries: GitLogEntry[]; error?: string; } export declare function isGitRepo(): boolean; export declare function gitStatus(): GitStatusResult; export declare function gitCommit(message: string, paths?: string[]): GitCommitResult; export declare function gitDiff(path?: string, staged?: boolean): GitDiffResult; export declare function gitLog(limit?: number): GitLogResult; export declare function gitInitIfNeeded(): { ok: boolean; initialized: boolean; error?: string; }; //# sourceMappingURL=git-ops.d.ts.map