/** * Bloom Filter is used to check whether a word is in the dictionary with less memory usage than normal hash map. */ export declare class BloomFilter { private size; private bitArray; private numHashFunctions; constructor(); private hash; add(word: string): void; contains(word: string): boolean; static loadFromZipFile(zipFilename: string): BloomFilter; } declare class DictionaryMatcher { bloomFilter: BloomFilter; constructor(); match(text: string): "exact" | "contains" | "none"; } export declare function trimNonAlphabetChars(token: string): string; export declare const dictMatcher: DictionaryMatcher; export {}; //# sourceMappingURL=dict.d.ts.map