/**
 * Commit audit log — append-only JSONL trail of every commit landed by
 * the server, tagged by source so operators can answer "who committed
 * this?" with one grep.
 *
 * Best-effort: a write failure logs and returns. The audit log is not
 * load-bearing for correctness — it's diagnostic.
 */
import type { GitUser } from '../services/git.js';
export type CommitSource = 'web-ui' | 'agent' | 'mcp' | 'cli' | 'recovery' | 'recovery-persisted' | 'session-flush' | 'graph-mutation';
export interface CommitAuditRecord {
    ts: string;
    repo: string;
    source: CommitSource;
    user: string;
    email: string;
    message: string;
    fileCount: number;
}
export declare function recordCommitAudit(workspacePath: string, entry: {
    repo: string;
    source: CommitSource;
    user: GitUser;
    message: string;
    fileCount: number;
}): void;
