import { ByteArray } from '../../types.js'; import { Cipher } from '../types.js'; /** * Creates an AES-256-CBC cipher for PDF encryption. * The cipher prepends a random IV to encrypted data during encryption * and extracts the IV from the first 16 bytes during decryption. * * @param key - The 32-byte encryption key. * @returns A Cipher object with encrypt and decrypt methods. * * @example * ```typescript * const cipher = aes256(key) * const encrypted = await cipher.encrypt(plaintext) * const decrypted = await cipher.decrypt(encrypted) * ``` */ export declare function aes256(key: ByteArray): Cipher;