import { ConcatorOptions, InputData } from "../interfaces"; import { BaseAccumulator } from "./base"; /** * Concator accumulator class */ export declare class Concator extends BaseAccumulator { private state; private separator; private maxConcat; private counter; constructor(options: ConcatorOptions); /** * Sets the option for the concator * * @param options options for the concator * @returns returns true if successful */ setOptions(options: ConcatorOptions): boolean; /** * Add a new data to concator * * @param data a new data record * @returns a promise of boolean */ add(data: InputData): Promise; /** * Gets the digest of the concator which is the state * * @returns concator digest */ getDigest(): string; /** * resets the concator to the default */ rest(): void; /** * Checks if the data has been recorded on the concator * * @param data the data record to check * @returns true if exists */ contains(data: InputData): Promise; /** * Gets the proof for a specific data record * * @param data the data record to get proofs for * @returns a promise of proof for if the data exists otherwise it will returns null */ getProof(data: InputData): Promise; /** * Checks the validity of a proof with respect a digest and a data record * * @param digest digest of concator * @param data data to check * @param proof proof for provided data * @returns a promise which completes as true if the proof is valid otherwise false */ verify(digest: string, data: InputData, proof: any[]): Promise; /** * Checks if the recorded data on concator is below capacity * * @returns true if concator is full otherwise false */ isFull(): boolean; }