declare module 'xkcd-passphrase' { interface IXkcdPassphrase { /** * Generates a diceware passphrase. * @param bits Bits of security in the generated passphrase (128 by default). * @param customWordList Custom word list to override the default one. */ generate (bits?: number, customWordList?: string) : Promise; /** * Generates a diceware passphrase. * @param wordCount Number of words to use in the generated passphrase. * @param customWordList Custom word list to override the default one. */ generateWithWordCount (wordCount: number, customWordList?: string) : Promise; } const xkcdPassphrase: IXkcdPassphrase; }