/** * Excel module error types. * * All Excel-related errors extend ExcelError. */ import { BaseError, type BaseErrorOptions } from "../../utils/errors.js"; /** * Base class for all Excel-related errors. */ export declare class ExcelError extends BaseError { constructor(message: string, options?: BaseErrorOptions); } /** * Check if an error is an Excel error. */ export declare function isExcelError(err: unknown): err is ExcelError; /** * Error thrown when worksheet name validation fails. */ export declare class WorksheetNameError extends ExcelError { name: string; } /** * Error thrown when a cell address or range is invalid. */ export declare class InvalidAddressError extends ExcelError { readonly address: string; name: string; constructor(address: string, details?: string, options?: BaseErrorOptions); } /** * Error thrown when a column number or letter is out of bounds. */ export declare class ColumnOutOfBoundsError extends ExcelError { readonly column: number | string; name: string; constructor(column: number | string, details?: string, options?: BaseErrorOptions); } /** * Error thrown when a row number is out of bounds. */ export declare class RowOutOfBoundsError extends ExcelError { readonly row: number; name: string; constructor(row: number, details?: string, options?: BaseErrorOptions); } /** * Error thrown when trying to merge already merged cells. */ export declare class MergeConflictError extends ExcelError { name: string; constructor(details?: string, options?: BaseErrorOptions); } /** * Error thrown when a value type cannot be processed. */ export declare class InvalidValueTypeError extends ExcelError { readonly valueType: string; name: string; constructor(valueType: string, details?: string, options?: BaseErrorOptions); } /** * Error thrown when XML parsing encounters unexpected content. */ export declare class XmlParseError extends ExcelError { readonly context: string; name: string; constructor(context: string, details?: string, options?: BaseErrorOptions); } /** * Error thrown when an operation is not supported. */ export declare class ExcelNotSupportedError extends ExcelError { readonly operation: string; readonly reason?: string | undefined; name: string; constructor(operation: string, reason?: string | undefined, options?: BaseErrorOptions); } /** * Error thrown when a file operation fails. */ export declare class ExcelFileError extends ExcelError { readonly path: string; readonly operation: "read" | "write"; name: string; constructor(path: string, operation: "read" | "write", details?: string, options?: BaseErrorOptions); } /** * Error thrown when a streaming operation fails due to invalid state. */ export declare class ExcelStreamStateError extends ExcelError { readonly operation: string; readonly state: string; name: string; constructor(operation: string, state: string, options?: BaseErrorOptions); } /** * Error thrown when an HTTP download fails. */ export declare class ExcelDownloadError extends ExcelError { readonly url: string; readonly status: number; readonly statusText: string; name: string; constructor(url: string, status: number, statusText: string, options?: BaseErrorOptions); } /** * Error thrown when pivot table configuration is invalid. */ export declare class PivotTableError extends ExcelError { name: string; } /** * Error thrown when chart configuration is invalid. */ export declare class ChartOptionsError extends ExcelError { name: string; } /** * Error thrown when table configuration or operation is invalid. */ export declare class TableError extends ExcelError { name: string; } /** * Error thrown when image processing fails. */ export declare class ImageError extends ExcelError { name: string; } /** * Error thrown when max items limit is exceeded. */ export declare class MaxItemsExceededError extends ExcelError { readonly itemType: string; readonly maxItems: number; name: string; constructor(itemType: string, maxItems: number, options?: BaseErrorOptions); }