Files
SnowLuma/.pnpm-store/v11/files/73/7aaeb39d18dd489b91221ce88f91291c4de7624cad7ea18d53866b83cf3f9633deeb052c202d37e5b54b6deea1dff12ff6a4e7d547730ad21c139824e374cd
T
TanTan 2a69b23b47
Dev Build / cleanup (push) Waiting to run
Dev Build / typecheck (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:27:07 +08:00

29 lines
1.2 KiB
Plaintext

import { TranslationKeys, OptionsType, OptionsDictionary, OptionsL33tTable, OptionsGraph, RankedDictionaries, Matchers, Matcher, UserInputsOptions, TimeEstimationValues } from './types';
import TrieNode from './matcher/dictionary/variants/matching/unmunger/TrieNode';
export default class Options {
matchers: Matchers;
l33tTable: OptionsL33tTable;
trieNodeRoot: TrieNode;
dictionary: OptionsDictionary;
rankedDictionaries: RankedDictionaries;
rankedDictionariesMaxWordSize: Record<string, number>;
translations: TranslationKeys;
graphs: OptionsGraph;
useLevenshteinDistance: boolean;
levenshteinThreshold: number;
l33tMaxSubstitutions: number;
maxLength: number;
wordSequenceNames: string[];
timeEstimationValues: TimeEstimationValues;
constructor(options?: OptionsType, customMatchers?: Record<string, Matcher>);
isWordSequence(key: string): boolean;
private setOptions;
private setTranslations;
private checkCustomTranslations;
private setRankedDictionaries;
private getRankedDictionariesMaxWordSize;
private buildSanitizedRankedDictionary;
getUserInputsOptions(dictionary?: (string | number)[]): UserInputsOptions;
private addMatcher;
}