import GroupElement from '../group_element'; import Scalar from '../scalar'; export declare enum EntityType { scalar = 1, privateKey = 2, groupElement = 4, publicKey = 5, capsule = 6, reEncryptedCapsule = 8, reEncryptionKey = 16 } export default class Parser { private buffer; constructor(buffer?: number[]); writeType(type: EntityType): Parser; isType(type: EntityType): boolean; expectedType(type: EntityType): void; writeGroupElement(groupElement: GroupElement): Parser; readGroupElement(): GroupElement; writeScalar(scalar: Scalar): Parser; writeBuffer(buffer: Buffer, type?: EntityType): Parser; readBuffer(type?: EntityType): Buffer; readScalar(): Scalar; toArray(): number[]; }