declare module "libsodium-wrappers-sumo" { interface KeyPair { publicKey: Uint8Array; privateKey: Uint8Array; keyType: string; } interface Sodium { ready: Promise; crypto_sign_keypair(): KeyPair; crypto_box_keypair(): KeyPair; crypto_scalarmult(privateKey: Uint8Array, publicKey: Uint8Array): Uint8Array; crypto_generichash(hashLength: number, message: Uint8Array): Uint8Array; crypto_aead_xchacha20poly1305_ietf_encrypt( message: Uint8Array, additionalData: Uint8Array | null, nsec: Uint8Array | null, nonce: Uint8Array, key: Uint8Array, ): Uint8Array; crypto_aead_xchacha20poly1305_ietf_decrypt( nsec: Uint8Array | null, ciphertext: Uint8Array, additionalData: Uint8Array | null, nonce: Uint8Array, key: Uint8Array, ): Uint8Array; crypto_aead_xchacha20poly1305_ietf_NPUBBYTES: number; crypto_sign_detached(message: Uint8Array, privateKey: Uint8Array): Uint8Array; crypto_sign_verify_detached( signature: Uint8Array, message: Uint8Array, publicKey: Uint8Array, ): boolean; randombytes_buf(length: number): Uint8Array; } const sodium: Sodium; export default sodium; }