import type { PoolClient } from 'pg'; import type { Conflict, DiffResult } from './diff.js'; export declare const ZERO_COUNTS: DiffResult['counts']; /** * Append one row to `theme_install_log` (spec 04 ยง 4.6). One call per * install / upgrade / uninstall command. `conflicts_detail` stores the full * conflict tuples as JSONB so a merchant can audit what an upgrade preserved. */ export declare function writeAuditLog(conn: PoolClient, themeId: string, command: 'install' | 'upgrade' | 'uninstall', counts: DiffResult['counts'], conflicts: Conflict[], notes?: string | null, appliedBy?: string | null): Promise;