/** * XChaCha20-Poly1305 Encryption (WASM-backed) * * Thin wrappers over `@totalreclaw/core` WASM module. * * Wire format (base64-encoded): [nonce: 24 bytes][tag: 16 bytes][ciphertext: variable] */ /** * Encrypt a UTF-8 plaintext string with XChaCha20-Poly1305. * * Wire format (base64-encoded): * [nonce: 24 bytes][tag: 16 bytes][ciphertext: variable] * * @param plaintext - Text to encrypt * @param encryptionKey - 32-byte encryption key * @returns Base64-encoded string containing nonce || tag || ciphertext */ export declare function encrypt(plaintext: string, encryptionKey: Buffer): string; /** * Decrypt a base64-encoded XChaCha20-Poly1305 blob back to a UTF-8 string. * * Expects the wire format produced by encrypt() above. * * @param encryptedBase64 - Base64-encoded string of nonce || tag || ciphertext * @param encryptionKey - 32-byte encryption key * @returns Decrypted UTF-8 string */ export declare function decrypt(encryptedBase64: string, encryptionKey: Buffer): string; //# sourceMappingURL=cipher.d.ts.map