/** * Encoding and fail-closed decoding for the durable application outbox's * delivery records (WFT-85). Index records live in * `outbox-index-codec.ts`. * * Decoding is deliberately paranoid, as the mailbox's is. A delivery record is * the authority for fencing, disposition, and whether an effect may already * have happened, so a truncated, hand-edited, or cross-version record must * raise `PersistedDataCorruptError` rather than be coerced into a plausible * state — silently treating a corrupt record as `queued` would resend work * that already reached its destination. * * @module core/outbox-codec */ import type { ApplicationDeliveryRecord } from './outbox-types.ts'; /** * Decode one persisted delivery record, failing closed on anything unexpected. * * @throws {PersistedDataCorruptError} When the stored bytes are not a * well-formed current-version delivery record. */ export declare function decodeApplicationDeliveryRecord(bytes: Uint8Array, key: string): ApplicationDeliveryRecord; /** Encode a delivery record for storage. */ export declare function encodeApplicationDeliveryRecord(record: ApplicationDeliveryRecord): Uint8Array;