export declare const crypto_aead_xchacha20poly1305_ietf_ABYTES: number; export declare const crypto_aead_xchacha20poly1305_ietf_KEYBYTES: number; export declare const crypto_aead_xchacha20poly1305_ietf_NPUBBYTES: number; export declare const crypto_aead_xchacha20poly1305_ietf_NSECBYTES: number; export declare const crypto_aead_xchacha20poly1305_ietf_MESSAGEBYTES_MAX: number; export declare const crypto_aead_chacha20poly1305_ietf_ABYTES: number; export declare const crypto_aead_chacha20poly1305_ietf_KEYBYTES: number; export declare const crypto_aead_chacha20poly1305_ietf_NPUBBYTES: number; export declare const crypto_aead_chacha20poly1305_ietf_NSECBYTES: number; export declare const crypto_aead_chacha20poly1305_ietf_MESSAGEBYTES_MAX: number; /** * Generates a new encryption k. * https://sodium-friends.github.io/docs/docs/aead#crypto_aead_xchacha20poly1305_ietf_keygen */ export declare function crypto_aead_xchacha20poly1305_ietf_keygen(key: Uint8Array): void; /** * Encrypts a message with npub, key and optional additional data. * https://sodium-friends.github.io/docs/docs/aead#crypto_aead_xchacha20poly1305_ietf_encrypt */ export declare function crypto_aead_xchacha20poly1305_ietf_encrypt(cipherText: Uint8Array, message: Uint8Array, add_data: Uint8Array | null, nsec: null, npub: Uint8Array, key: Uint8Array): number; /** * Decrypts a message with npub, key and optional additional data. * https://sodium-friends.github.io/docs/docs/aead#crypto_aead_xchacha20poly1305_ietf_decrypt */ export declare function crypto_aead_xchacha20poly1305_ietf_decrypt(message: Uint8Array, nsec: null, cipherText: Uint8Array, add_data: Uint8Array | null, npub: Uint8Array, key: Uint8Array): number; /** * Generates a new encryption k. */ export declare function crypto_aead_chacha20poly1305_ietf_keygen(key: Uint8Array): void; /** * Encrypts a message with npub, key and optional additional data. * https://sodium-friends.github.io/docs/docs/aead#crypto_aead_xchacha20poly1305_ietf_encrypt */ export declare function crypto_aead_chacha20poly1305_ietf_encrypt(cipherText: Uint8Array, message: Uint8Array, add_data: Uint8Array | null, nsec: null, npub: Uint8Array, key: Uint8Array): number; /** * Decrypts a message with npub, key and optional additional data. * https://sodium-friends.github.io/docs/docs/aead#crypto_aead_xchacha20poly1305_ietf_decrypt */ export declare function crypto_aead_chacha20poly1305_ietf_decrypt(message: Uint8Array, nsec: null, cipherText: Uint8Array, add_data: Uint8Array | null, npub: Uint8Array, key: Uint8Array): number; //# sourceMappingURL=crypto_aead.d.ts.map