/** * Fail-closed readers shared by the application primitives' codecs (WFT-84, WFT-85). * * Every reader raises `PersistedDataCorruptError` for the key being decoded * rather than coercing a damaged value into something plausible. The record * codec and the index codec are built from these. * * @module core/application-primitive-codec */ export declare function isRecordObject(value: unknown): value is Record; export declare function fail(key: string): never; export declare function readString(source: Record, field: string, key: string): string; export declare function readOptionalString(source: Record, field: string, key: string): string | undefined; export declare function readInteger(source: Record, field: string, key: string): number; /** * Admission requires these to be positive, so a persisted zero is corruption: * a zero visibility timeout would hand out a lease that is reclaimable the * instant it is granted, and zero attempts would deliver work that is already * exhausted. */ export declare function readPositiveInteger(source: Record, field: string, key: string): number; export declare function readOptionalInteger(source: Record, field: string, key: string): number | undefined; export declare function readVersion(source: Record, key: string, expected?: number): void; /** * Rebuild the key a record's own identity names. Key construction percent-encodes * each component and throws a raw `URIError` on an unpaired surrogate; a * persisted identity that malformed is corruption and must surface as such. */ export declare function ownKey(build: () => string, key: string): string; /** * A persisted command id is handed straight to key construction by `claim()`, * `list()`, the waits, and idempotency lookups; an unpaired surrogate or an * oversized value there would escape as a raw `URIError` rather than the * corruption it is. */ export declare function readIdentifier(value: unknown, key: string): string;