@ethereumjs/binarytree
Version:
Implementation of binary trees as used in Ethereum.
14 lines • 890 B
TypeScript
import { InternalBinaryNode } from './internalNode.ts';
import { StemBinaryNode } from './stemNode.ts';
import { type BinaryNode } from './types.ts';
/** Decode a raw RLP node array into a typed binary tree node. */
export declare function decodeRawBinaryNode(raw: Uint8Array[]): BinaryNode;
/** Decode an RLP-serialized binary tree node from bytes. */
export declare function decodeBinaryNode(raw: Uint8Array): BinaryNode;
/** Type guard: value is a raw (non-RLP-wrapped) node array. */
export declare function isRawBinaryNode(node: Uint8Array | Uint8Array[]): node is Uint8Array[];
/** Type guard for {@link InternalBinaryNode}. */
export declare function isInternalBinaryNode(node: BinaryNode): node is InternalBinaryNode;
/** Type guard for {@link StemBinaryNode}. */
export declare function isStemBinaryNode(node: BinaryNode): node is StemBinaryNode;
//# sourceMappingURL=util.d.ts.map