/** * NaCl sealed box implementation using @noble/* libraries. * * Wire-compatible with libsodium crypto_box_seal / tweetnacl-sealedbox-js. * Protocol: ephPk(32) || xsalsa20poly1305(key, nonce, message) * where key = HSalsa20(x25519(ephSk, recipientPk), zero_16) * nonce = BLAKE2b(ephPk || recipientPk, 24) */ /** Encrypt a message for a recipient's x25519 public key (anonymous sender). */ export declare function seal(message: Uint8Array, recipientPk: Uint8Array): Uint8Array; /** Decrypt a sealed box with the recipient's keypair. */ export declare function open(sealed: Uint8Array, recipientPk: Uint8Array, recipientSk: Uint8Array): Uint8Array; /** Generate an x25519 keypair (for tests or key generation). */ export declare function boxKeyPair(): { publicKey: Uint8Array; secretKey: Uint8Array; }; //# sourceMappingURL=sealed-box.d.ts.map