lang-zh.d.ts 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. import { Wordlist } from "./wordlist.js";
  2. /**
  3. * The [[link-bip39-zh_cn]] and [[link-bip39-zh_tw]] for
  4. * [mnemonic phrases](link-bip-39).
  5. *
  6. * @_docloc: api/wordlists
  7. */
  8. export declare class LangZh extends Wordlist {
  9. /**
  10. * Creates a new instance of the Chinese language Wordlist for
  11. * the %%dialect%%, either ``"cn"`` or ``"tw"`` for simplified
  12. * or traditional, respectively.
  13. *
  14. * This should be unnecessary most of the time as the exported
  15. * [[langZhCn]] and [[langZhTw]] should suffice.
  16. *
  17. * @_ignore:
  18. */
  19. constructor(dialect: string);
  20. getWord(index: number): string;
  21. getWordIndex(word: string): number;
  22. split(phrase: string): Array<string>;
  23. /**
  24. * Returns a singleton instance of a ``LangZh`` for %%dialect%%,
  25. * creating it if this is the first time being called.
  26. *
  27. * Use the %%dialect%% ``"cn"`` or ``"tw"`` for simplified or
  28. * traditional, respectively.
  29. */
  30. static wordlist(dialect: string): LangZh;
  31. }
  32. //# sourceMappingURL=lang-zh.d.ts.map