/** * Audit chain primitive: monotonic per-row hash chain. * * Each row carries: * - content_hash: SHA-256(JCS(payload)) * - prev_hash: previous row's content_hash, or null for the head row * - chain_position: monotonically increasing integer starting at 0 * * This is the structure AlgoVoi's production /compliance/attestation chain * exposes (Object Lock COMPLIANCE retention to 2033-05-04). */ export declare class AuditChainError extends Error { constructor(message: string); } export interface AuditChainRow { chain_position: number; content_hash: string; prev_hash: string | null; payload: unknown; } /** * Build the next row in an audit chain. * * If prevRow is null, the new row becomes the head (chain_position = 0, * prev_hash = null). Otherwise chain_position increments and prev_hash * links to prevRow.content_hash. */ export declare function appendToChain(payload: unknown, prevRow: AuditChainRow | null): AuditChainRow; /** * Verify a chain of audit rows is well-formed and linkage-consistent. * * Throws AuditChainError on any violation; otherwise returns void. */ export declare function verifyAuditChain(rows: readonly AuditChainRow[]): void; //# sourceMappingURL=audit-chain.d.ts.map