/** * @fileoverview Parser for converting binary data from the calendar server * into the protocol buffer format. * * @author davidarvan * @license Unlicense https://unlicense.org */ import { AttestationStatus } from '../models/simplestamp/v1/status'; import { Operation } from '../models/simplestamp/v1/operation'; export declare class Parser { /** * Extract the sequence of operations from binary data returned by a calendar server. */ static parseServerResponse(binary: Buffer): Operation[]; /** Figure out the correct status flag from the binary tag. */ static extractAttestationStatus(binary: Buffer): AttestationStatus; /** * Reads the initial bytes as a variable length int that indicates how many more * bytes to read. Returns [extracted, remainder]. */ static extractVariableBytes(binary: Buffer): [Buffer, Buffer]; /** * Reads bytes as an unsigned variable length integer. * Returns [value, remainder]. */ static extractVariableInteger(binary: Buffer): [number, Buffer]; /** Reverse the bytes in a buffer. */ static reverse(input: Buffer): Buffer; } //# sourceMappingURL=parser.d.ts.map