/** * Base error class for all crypto-shredding related errors */ export declare class CryptoShreddingError extends Error { readonly code: string; readonly cause?: Error | undefined; constructor(message: string, code: string, cause?: Error | undefined); } /** * Error thrown when encryption/decryption operations fail */ export declare class CryptoOperationError extends CryptoShreddingError { readonly operation: "encrypt" | "decrypt"; readonly algorithm?: string | undefined; constructor(message: string, operation: "encrypt" | "decrypt", algorithm?: string | undefined, cause?: Error); } /** * Error thrown when an unsupported algorithm is requested */ export declare class UnsupportedAlgorithmError extends CryptoShreddingError { readonly algorithm: string; readonly supportedAlgorithms: string[]; readonly runtime?: string | undefined; constructor(algorithm: string, supportedAlgorithms: string[], runtime?: string | undefined); } /** * Error thrown when key management operations fail */ export declare class KeyManagementError extends CryptoShreddingError { readonly operation: "get" | "rotate" | "destroy"; readonly partition?: string | undefined; readonly keyRef?: string | undefined; constructor(message: string, operation: "get" | "rotate" | "destroy", partition?: string | undefined, keyRef?: string | undefined, cause?: Error); } /** * Error thrown when policy resolution fails */ export declare class PolicyResolutionError extends CryptoShreddingError { readonly context: { partition: string; streamId: string; streamType?: string; eventType?: string; }; constructor(message: string, context: { partition: string; streamId: string; streamType?: string; eventType?: string; }, cause?: Error); } /** * Error thrown when Web Crypto API is not available */ export declare class WebCryptoNotAvailableError extends CryptoShreddingError { constructor(runtime?: string); } /** * Error thrown when invalid parameters are provided */ export declare class InvalidParameterError extends CryptoShreddingError { readonly parameter: string; readonly value: unknown; constructor(message: string, parameter: string, value: unknown); } /** * Error thrown when data format is invalid */ export declare class InvalidDataFormatError extends CryptoShreddingError { readonly expectedFormat: string; readonly actualFormat?: string | undefined; constructor(message: string, expectedFormat: string, actualFormat?: string | undefined); } //# sourceMappingURL=errors.d.ts.map