import { AuditEntryInput, StoredAuditEntry } from "./types.js"; import { AuditDb } from "./audit-db.js"; //#region src/audit/append.d.ts /** Genesis prev-hash (64 zero hex chars). */ declare const GENESIS_PREV_HASH: string; /** * Compute the SHA-256 chain hash for an entry. Exposed for tests and * for tooling that wants to recompute hashes outside the verifier. * * @stable */ declare function computeAuditHash(entry: Omit): string; /** * Append a single audit entry. The function is `async` so it can run * the canonical-JSON serializer + SHA-256 in a worker pool in a * future revision; today it is synchronous on the inside. * * Concurrent calls against the same `AuditDb` are serialised so the * `latest()`→`insert()` read-modify-write never races. * * @stable */ declare function appendAudit(db: AuditDb, input: AuditEntryInput): Promise; //#endregion export { GENESIS_PREV_HASH, appendAudit, computeAuditHash }; //# sourceMappingURL=append.d.ts.map