import { LevenshteinDictionary } from '../../utils/levenshtein'; export interface WordList { name: string; words: readonly unknown[]; } export default class WordIndex { readonly words: string[]; readonly hitStart: Int32Array; readonly hitDictionary: Uint8Array | Uint16Array; readonly hitRank: Int32Array; readonly dictionaryNames: string[]; private readonly listSizes; private readonly findRange; private readonly firstCharacters; private readonly firstCharacterStarts; private readonly levenshteinDictionaries; private wordsByRank; constructor(lists?: readonly WordList[]); private getFirstCharacterStarts; private findFirst; narrow(range: Int32Array, depth: number, code: number): void; find(word: string): number; getLevenshteinDictionary(dictionary: number): LevenshteinDictionary; private getWordsByRank; private getEntries; getRank(wordIndex: number, dictionary: number): number | undefined; }