/** * @fileoverview Encryption Error Types for BrightChat E2E Encryption * * Error hierarchy for encryption operations including key wrapping, * message decryption, attachment validation, and key epoch management. * * @see Requirements 12.1, 12.2, 12.3, 12.4, 11.4 */ /** * Thrown when a member's ECIES public key is not found during key wrapping. * * @see Requirements 12.1, 12.2 */ export declare class MissingPublicKeyError extends Error { readonly memberId: string; constructor(memberId: string); } /** * Thrown when ECIES decryption of a wrapped key fails. * * @see Requirement 12.3 */ export declare class KeyUnwrapError extends Error { readonly contextId: string; readonly memberId: string; readonly epoch: number; constructor(contextId: string, memberId: string, epoch: number); } /** * Thrown when AES decryption of message content fails. * * @see Requirements 12.3, 12.4 */ export declare class MessageDecryptionError extends Error { readonly contextId: string; readonly messageId: string; readonly keyEpoch: number; constructor(contextId: string, messageId: string, keyEpoch: number); } /** * Thrown when an attachment exceeds the configured maximum file size. * * @see Requirement 11.4 */ export declare class AttachmentTooLargeError extends Error { readonly fileName: string; readonly size: number; readonly maxSize: number; constructor(fileName: string, size: number, maxSize: number); } /** * Thrown when a message exceeds the configured maximum number of attachments. * * @see Requirement 11.4 */ export declare class TooManyAttachmentsError extends Error { readonly count: number; readonly maxCount: number; constructor(count: number, maxCount: number); } /** * Thrown when a message references a key epoch that does not exist in the context. * * @see Requirement 12.3 */ export declare class KeyEpochNotFoundError extends Error { readonly contextId: string; readonly keyEpoch: number; constructor(contextId: string, keyEpoch: number); } //# sourceMappingURL=encryptionErrors.d.ts.map