import { defineProperties } from "../utils/index.js"; export abstract class Wordlist { locale!: string; constructor(locale: string) { defineProperties(this, { locale }); } // Subclasses may override this split(mnemonic: string): Array { return mnemonic.toLowerCase().split(/ +/g) } // Subclasses may override this join(words: Array): string { return words.join(" "); } abstract getWord(index: number): string; abstract getWordIndex(word: string): number; }