/** * Outcome of one audit commit. `ok: true` always carries a real `commit` snapshot; * `empty: true` only means no files changed (an empty baseline commit or no commit was * needed). `ok: false` means the audit layer could not guarantee a snapshot. */ export type AuditResult = { ok: true; commit: string; empty: boolean; } | { ok: false; error: string; }; /** * Git audit layer for a dream run: one commit before (baseline) and one after (dream), * so the human gate reviews `git show` instead of trusting a report, and rollback is * `git revert`. The caller decides how loud a failure is; this function only reports it. * A clean tree on an established repository commits nothing; a repository with no HEAD * gets an empty baseline commit, because an audit run with no snapshot is not a success. */ export declare function gitCommit(home: string, message: string): AuditResult;