You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
702 B
15 lines
702 B
import { TrieNode } from './TrieNode'; |
|
import { Sequence } from 'gensequence'; |
|
export declare const DATA = "*"; |
|
export interface ExportOptions { |
|
base?: number; |
|
comment?: string; |
|
} |
|
/** |
|
* Serialize a TrieNode. |
|
* Note: This is destructive. The node will no longer be usable. |
|
* Even though it is possible to preserve the trie, dealing with very large tries can consume a lot of memory. |
|
* Considering this is the last step before exporting, it was decided to let this be destructive. |
|
*/ |
|
export declare function serializeTrie(root: TrieNode, options?: ExportOptions | number): Sequence<string>; |
|
export declare function importTrie(linesX: Iterable<string> | IterableIterator<string>): TrieNode;
|
|
|