import { Tree } from "@chainsafe/persistent-merkle-tree"; import { ValueOf } from "../type/abstract.ts"; import { BasicType } from "../type/basic.ts"; import { ArrayBasicTreeView, ArrayBasicType } from "./arrayBasic.ts"; /** Expected API of this View's type. This interface allows to break a recursive dependency between types and views */ export type ListBasicType> = ArrayBasicType & { readonly limit: number; }; export declare class ListBasicTreeView> extends ArrayBasicTreeView { readonly type: ListBasicType; protected tree: Tree; constructor(type: ListBasicType, tree: Tree); /** * Adds one value element at the end of the array and adds 1 to the current Tree length. */ push(value: ValueOf): void; }