ethers.js/packages/wordlists/lib.esm/wordlist.d.ts

13 lines
510 B
TypeScript
Raw Permalink Normal View History

import { Logger } from "@ethersproject/logger";
export declare const logger: Logger;
2019-05-14 18:48:48 -04:00
export declare abstract class Wordlist {
readonly locale: string;
constructor(locale: string);
abstract getWord(index: number): string;
abstract getWordIndex(word: string): number;
split(mnemonic: string): Array<string>;
join(words: Array<string>): string;
static check(wordlist: Wordlist): string;
static register(lang: Wordlist, name?: string): void;
2019-05-14 18:48:48 -04:00
}
//# sourceMappingURL=wordlist.d.ts.map