import TrieMap from './trie-map.js'; /** Mnemonist Trie =============== JavaScript Trie implementation based upon plain objects. As such this structure is more a convenience building upon the trie's advantages than a real performant alternative to already existing structures. Note that the Trie is based upon the TrieMap since the underlying machine is the very same. The Trie just does not let you set values and only considers the existence of the given prefixes. */ export default class Trie extends TrieMap { static SENTINEL: "\0"; constructor(token?: ArrayConstructor); /** Static @.from function taking an arbitrary iterable & converting it into a trie. @param {Iterable} iterable - Target iterable. @returns {Trie} */ static from(array: Iterable): Trie; /** Method used to add the given prefix to the trie. @param prefix - Prefix to follow. */ add(prefix: string | Array): this; /** Get all the items in the trie that are prefixes of the given value. */ getPrefixes(value: string | Array): any[]; /** Method used to retrieve every item in the trie with the given prefix. @returns {Array} */ find(prefix: string | Array): any[]; inspect(): Set; toJSON(): import("../types/node.js").Node; set: any; get: any; values: any; entries: any; [Symbol.iterator]: any; }