d11 theme
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
690 B

import { Sequence } from 'gensequence';
import { TrieNode } from './TrieNode';
export interface ExportOptions {
base?: number;
comment?: string;
version?: number;
}
/**
* 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(lines: Iterable<string> | IterableIterator<string>): TrieNode;