/** Stable error codes for compression operations. */ export type CompressionErrorCode = 'COMPRESSION_INVALID_OPTIONS' | 'COMPRESSION_UNSUPPORTED_ALGORITHM' | 'COMPRESSION_BACKEND_UNAVAILABLE' | 'COMPRESSION_BAD_DATA' | 'COMPRESSION_RESOURCE_LIMIT' | 'COMPRESSION_GZIP_BAD_HEADER' | 'COMPRESSION_BZIP2_BAD_DATA' | 'COMPRESSION_BZIP2_CRC_MISMATCH' | 'COMPRESSION_XZ_BAD_DATA' | 'COMPRESSION_XZ_BAD_CHECK' | 'COMPRESSION_XZ_TRUNCATED' | 'COMPRESSION_XZ_UNSUPPORTED_FILTER' | 'COMPRESSION_XZ_UNSUPPORTED_CHECK' | 'COMPRESSION_LZMA_BAD_DATA'; /** Error thrown for compression backend failures or unsupported algorithms. */ export declare class CompressionError extends Error { /** Machine-readable error code. */ readonly code: CompressionErrorCode; /** Algorithm involved in the failure, if available. */ readonly algorithm?: string; /** Underlying cause, if available. */ readonly cause?: unknown; /** Additional context for serialization. */ readonly context?: Record | undefined; /** Create a CompressionError with a stable code. */ constructor(code: CompressionErrorCode, message: string, options?: { algorithm?: string; context?: Record | undefined; cause?: unknown; }); /** Serialize this error into the stable JSON error contract. */ toJSON(): { name: string; code: CompressionErrorCode; message: string; context: Record; algorithm?: string; }; } //# sourceMappingURL=errors.d.ts.map