import { Dict, Protocols, Serials, Version } from './core.ts'; import { Verfer } from './verfer.ts'; import { Diger } from './diger.ts'; import { CesrNumber } from './number.ts'; export declare class Serder { private _kind; private _raw; private _sad; private _proto; private _size; private _version; private readonly _code; /** * Creates a new Serder object from a self-addressing data dictionary. * @param sad self-addressing data dictionary. * @param kind serialization type to produce * @param code derivation code for the prefix */ constructor(sad: Dict, kind?: Serials, code?: string); get sad(): Dict; get pre(): string; get code(): string; get raw(): string; get said(): string; get sner(): CesrNumber; get sn(): number; get kind(): Serials; /** * Serializes a self-addressing data dictionary from the dictionary passed in * using the specified serialization type. * @param sad self-addressing data dictionary. * @param kind serialization type to produce * @private */ private _exhale; get proto(): Protocols; get size(): number; get version(): Version; get verfers(): Verfer[]; get digers(): Diger[]; pretty(): string; } export declare function dumps(sad: object, kind: Serials.JSON): string; export declare function sizeify(ked: Dict, kind?: Serials): [string, Protocols, Serials, Dict, Version];