/** * Encrypts a payload using the provided RSA public key. * @param payload String to encrypt * @param publicKey RSA public key * @returns Base64 encoded string representing encrypted payload */ declare function publicEncryptRsa(payload: string, publicKey: string): Promise; /** * Decrypts a payload using the provided RSA private key. Returns the decrypted payload as a UTF-8 string. * @param encryptedPayload Base64 encoded string representing encrypted payload * @param privateKey * @returns UTF-8 encoded string representing decrypted payload */ declare function privateDecryptRsa(encryptedPayload: string, privateKey: string): Promise; declare function encryptAES(payload: string, aesKey: string | Buffer, ivHex?: string): { encryptedData: string; iv: string; }; declare function decryptAES(encryptedPayload: string, aesKey: string | Buffer, ivHex: string): string; export { decryptAES, encryptAES, privateDecryptRsa, publicEncryptRsa };