import type { ChainedEvent, RunEvent } from "./types.js"; /** * Append an event to a hash chain. The genesis event's `prev` is the * contract hash, which ties the whole chain to the signed contract. */ export declare function appendEvent(chain: ChainedEvent[], event: RunEvent, genesisPrev: string, now?: () => string): ChainedEvent; export type ChainVerification = { ok: true; } | { ok: false; brokenAtSeq: number; reason: string; }; export declare function verifyChain(events: ChainedEvent[], genesisPrev: string): ChainVerification;