declare module 'ntru' { interface INTRU { /** Secret length. */ bytes: Promise; /** Cyphertext length. */ cyphertextBytes: Promise; /** Private key length. */ privateKeyBytes: Promise; /** Public key length. */ publicKeyBytes: Promise; /** Decrypts secret with privateKey. */ decrypt (cyphertext: Uint8Array|string, privateKey: Uint8Array) : Promise; /** Encrypts secret with publicKey. */ encrypt (publicKey: Uint8Array) : Promise<{cyphertext: Uint8Array; secret: Uint8Array}>; /** Generates key pair. */ keyPair () : Promise<{privateKey: Uint8Array; publicKey: Uint8Array}>; } const ntru: INTRU; }