import type { AuditRecord, UnchainedAuditRecord } from '@moxxy/sdk'; /** Seal a record into the chain. */ export declare function chainRecord(record: UnchainedAuditRecord, seq: number, prevHash: string | null): AuditRecord; export type ChainVerdict = { readonly ok: true; readonly count: number; readonly head: string | null; } | { readonly ok: false; readonly count: number; readonly brokenAt: number; readonly reason: string; }; /** * Verify a chain end to end. Reports the FIRST break rather than a list: after * one broken link every later hash is unverifiable anyway, so enumerating them * would be noise that hides where the damage starts. */ export declare function verifyChain(records: ReadonlyArray): ChainVerdict; //# sourceMappingURL=chain.d.ts.map