/** * 使用指定 IV 加密(供测试与内部使用,保证可重现) */ export declare function aesEncryptWithIv(plaintext: string, key: string, iv: Buffer): string; declare class AESCryptoImpl { /** * AES-256-CBC 加密,返回 base64(IV)+base64(密文) */ encrypt(plaintext: string, key: string): string; /** * 解密 base64(IV)+base64(密文) 格式的密文 */ decrypt(encryptedData: string, key: string): string; } export declare const AESCrypto: AESCryptoImpl; export {};