/** * Error types for the rebook library. * Provides a hierarchy of errors for better error handling and debugging. */ /** * Base error class for all rebook errors. */ export declare class EBookError extends Error { code: string; constructor(message: string, code: string); } /** * Error thrown when parsing fails due to invalid or malformed content. */ export declare class ParseError extends EBookError { format?: string | undefined; constructor(message: string, format?: string | undefined); } /** * Error thrown when the input format is not recognized or supported. */ export declare class UnsupportedFormatError extends EBookError { constructor(message?: string); } /** * Error thrown when the file is corrupted or severely malformed. */ export declare class CorruptedFileError extends EBookError { format?: string | undefined; constructor(message: string, format?: string | undefined); } /** * Error thrown when a required adapter is not provided. */ export declare class AdapterRequiredError extends EBookError { constructor(adapter: string); } /** * Error thrown when input type is not supported by the parser. */ export declare class UnsupportedInputError extends EBookError { constructor(message?: string); } //# sourceMappingURL=errors.d.ts.map