2022-09-05 16:57:11 -04:00
|
|
|
import { Wordlist } from "./wordlist.js";
|
2022-11-30 15:44:23 -05:00
|
|
|
/**
|
2022-12-02 21:27:06 -05:00
|
|
|
* The [[link-bip39-zh_cn]] and [[link-bip39-zh_tw]] for
|
|
|
|
* [mnemonic phrases](link-bip-39).
|
2022-11-30 15:44:23 -05:00
|
|
|
*
|
|
|
|
* @_docloc: api/wordlists
|
|
|
|
*/
|
|
|
|
export declare class LangZh extends Wordlist {
|
|
|
|
/**
|
|
|
|
* Creates a new instance of the Chinese language Wordlist for
|
|
|
|
* the %%dialect%%, either ``"cn"`` or ``"tw"`` for simplified
|
|
|
|
* or traditional, respectively.
|
|
|
|
*
|
|
|
|
* This should be unnecessary most of the time as the exported
|
|
|
|
* [[langZhCn]] and [[langZhTw]] should suffice.
|
2022-12-30 11:30:03 -05:00
|
|
|
*
|
|
|
|
* @_ignore:
|
2022-11-30 15:44:23 -05:00
|
|
|
*/
|
|
|
|
constructor(dialect: string);
|
2022-09-05 16:57:11 -04:00
|
|
|
getWord(index: number): string;
|
|
|
|
getWordIndex(word: string): number;
|
2022-11-30 15:44:23 -05:00
|
|
|
split(phrase: string): Array<string>;
|
|
|
|
/**
|
|
|
|
* Returns a singleton instance of a ``LangZh`` for %%dialect%%,
|
|
|
|
* creating it if this is the first time being called.
|
2022-12-30 11:30:03 -05:00
|
|
|
*
|
|
|
|
* Use the %%dialect%% ``"cn"`` or ``"tw"`` for simplified or
|
|
|
|
* traditional, respectively.
|
2022-11-30 15:44:23 -05:00
|
|
|
*/
|
|
|
|
static wordlist(dialect: string): LangZh;
|
2022-09-05 16:57:11 -04:00
|
|
|
}
|
|
|
|
//# sourceMappingURL=lang-zh.d.ts.map
|