import { HashComputationLevel, Node } from "@chainsafe/persistent-merkle-tree"; import { BranchNodeStruct } from "../branchNodeStruct.ts"; import { Type } from "../type/abstract.ts"; import { ContainerTypeGeneric, ValueOfFields } from "../view/container.ts"; import { TreeViewDU } from "./abstract.ts"; import { ContainerTreeViewDUTypeConstructor } from "./container.ts"; export declare class ContainerNodeStructTreeViewDU>> extends TreeViewDU> { readonly type: ContainerTypeGeneric; protected valueChanged: ValueOfFields | null; protected _rootNode: BranchNodeStruct>; constructor(type: ContainerTypeGeneric, node: Node); get node(): Node; get cache(): void; get value(): ValueOfFields; /** * There are 2 cases: * - normal commit() or hashTreeRoot(): hcByLevel is null, no need to compute root * - batchHashTreeRoot(): hcByLevel is not null, need to compute root because this does not support HashComputation */ commit(_?: number, hcByLevel?: HashComputationLevel[] | null): void; protected clearCache(): void; } export declare function getContainerTreeViewDUClass>>(type: ContainerTypeGeneric): ContainerTreeViewDUTypeConstructor;