/** * Encrypts and compresses a string using AES-256-GCM and zlib deflate * @param text - The text to encrypt * @param key - The encryption key * @returns The encrypted and compressed text as a string in format: iv:authTag:encryptedData (all base64 encoded) */ export declare function encryptAndCompress(text: string, key: string): string; /** * Decrypts and decompresses a string that was encrypted using the encryptAndCompress function * @param encryptedText - The encrypted text (format: iv:authTag:encryptedData) * @param key - The encryption key (must be the same as used for encryption) * @returns The decrypted and decompressed text */ export declare function decryptAndDecompress(encryptedText: string, key: string): string; /** * Measures the compression ratio achieved by the encryptAndCompress function * @param originalText - The original text * @param encryptedText - The encrypted and compressed text * @returns The compression ratio (original size / encrypted size) */ export declare function getCompressionStats(originalText: string, encryptedText: string): { originalSize: number; encryptedSize: number; compressionRatio: number; }; //# sourceMappingURL=crypto-compressed.d.ts.map