import type { BatchOperation } from './types.js'; /** * Encryption utilities using AES-256-CBC * Provides methods for encrypting and decrypting data with AES-256-CBC algorithm */ export declare class EncryptionUtils { /** * Encrypts data using AES-256-CBC encryption * @param data - The data to encrypt (Buffer or string) * @param encryptionKey - The encryption key * @returns Encrypted data as Buffer with IV prepended * @throws Error if encryption key is not provided */ static encrypt(data: Buffer | string, encryptionKey: string): Buffer; /** * Decrypts data using AES-256-CBC decryption * @param data - The encrypted data (Buffer with IV prepended) * @param encryptionKey - The encryption key * @returns Decrypted data as Buffer * @throws Error if encryption key is not provided or data is invalid */ static decrypt(data: Buffer, encryptionKey: string): Buffer; } /** * Compression utilities using gzip * Provides methods for compressing and decompressing data with gzip */ export declare class CompressionUtils { /** * Compresses data asynchronously using gzip * @param data - The string data to compress * @returns Promise resolving to compressed Buffer */ static compress(data: string): Promise; /** * Compresses data synchronously using gzip * @param data - The string data to compress * @returns Compressed Buffer */ static compressSync(data: string): Buffer; /** * Decompresses data asynchronously using gzip * @param data - The compressed Buffer to decompress * @returns Promise resolving to decompressed Buffer */ static decompress(data: Buffer): Promise; /** * Decompresses data synchronously using gzip * @param data - The compressed Buffer to decompress * @returns Decompressed Buffer */ static decompressSync(data: Buffer): Buffer; } /** * Validation utilities * Provides methods for validating input parameters */ export declare class ValidationUtils { /** * Validates that a key is a non-empty string * @param key - The key to validate * @throws Error if key is not a non-empty string */ static validateKey(key: unknown): asserts key is string; /** * Validates that TTL is either null or a positive number * @param ttl - The TTL value to validate * @throws Error if TTL is not null and not a positive number */ static validateTTL(ttl: unknown): asserts ttl is number | null; /** * Validates that batch operations are properly formatted * @param operations - The operations array to validate * @throws Error if operations is not a valid array of BatchOperation objects */ static validateBatchOperations(operations: unknown): asserts operations is BatchOperation[]; } //# sourceMappingURL=utils.d.ts.map