1 | import { Nibbles } from '../trieNode';
|
2 | /**
|
3 | * Prepends hex prefix to an array of nibbles.
|
4 | * @param key - Array of nibbles
|
5 | * @returns returns buffer of encoded data
|
6 | **/
|
7 | export declare function addHexPrefix(key: Nibbles, terminator: boolean): Nibbles;
|
8 | /**
|
9 | * Removes hex prefix of an array of nibbles.
|
10 | * @param val - Array of nibbles
|
11 | * @private
|
12 | */
|
13 | export declare function removeHexPrefix(val: Nibbles): Nibbles;
|
14 | /**
|
15 | * Returns true if hex-prefixed path is for a terminating (leaf) node.
|
16 | * @param key - a hex-prefixed array of nibbles
|
17 | * @private
|
18 | */
|
19 | export declare function isTerminator(key: Nibbles): boolean;
|