import type { ColdCode } from "../core/types.js"; import type { Versionage } from "../tables/table-types.js"; import type { Protocol } from "../tables/versions.js"; import { Matter, type MatterInit } from "./matter.js"; import { Tagger } from "./tagger.js"; /** * Compact version primitive for protocol/genus version metadata. * * KERIpy semantics: payload tag is `proto + pvrsn (+ gvrsn optional)` where * proto is usually `KERI|ACDC`, but KERIpy also permits auxiliary four-char * tags such as `OCSR` used by typed-digest seal families. `pvrsn` is always * present, and `gvrsn` is present only for 10-char tags. */ export declare class Verser extends Tagger { constructor(init: Matter | MatterInit); /** * Four-character verser namespace extracted from tag payload. * * Maintainer note: * - native message bodies still only use the protocol literals from * `tables/versions.ts` * - KERIpy also permits auxiliary four-char tags such as `OCSR` for * typed-digest seals, so this accessor may carry a value outside the * nominal protocol union even though the broader codebase still treats * top-level message bodies as `KERI|ACDC` */ get proto(): Protocol; /** Protocol-version tuple (`major`, `minor`) decoded from tag payload. */ get pvrsn(): Versionage; /** Optional genus-version tuple decoded when 10-char verser payload is present. */ get gvrsn(): Versionage | null; } /** Parse and hydrate `Verser` from txt/qb2 bytes. */ export declare function parseVerser(input: Uint8Array, cold: Extract): Verser; //# sourceMappingURL=verser.d.ts.map