import { MerkleTree } from "merkletreejs"; import { EIP712TypedData } from "../types"; type BatchOrderElements = [T, T] | [BatchOrderElements, BatchOrderElements]; /** * Generic wrapper around MerkleTreeJS to support EIP signing */ export declare class Eip712MerkleTree = any> { types: EIP712TypedData; leafType: string; elements: BaseType[]; depth: number; tree: MerkleTree; private completeLeaves; private completeElements; /** * Compute the tree height * @param length length of the array of elements * @returns height as a number */ static getTreeHeight: (length: number) => number; /** * * @param types EIP712 Typed data * @param leafType Leaf type used in the Typed data * @param defaultNode Dummy node * @param elements Array of data blocks * @param depth tree depth */ constructor(types: EIP712TypedData, leafType: string, defaultNode: BaseType, elements: BaseType[], depth: number); get completedSize(): number; get hexRoot(): string; getPositionalProof(i: number): { leaf: string; proof: (string | number)[][]; }; getDataToSign(): { tree: BatchOrderElements; }; } export {};