import { BluetoothPrintError } from './baseError'; /** * Print job-related error codes */ export declare enum PrintJobErrorCode { /** Print job failed */ FAILED = "PRINT_JOB_FAILED", /** Print job is already in progress */ IN_PROGRESS = "PRINT_JOB_IN_PROGRESS", /** Print job was cancelled */ CANCELLED = "PRINT_JOB_CANCELLED", /** Print data is invalid */ INVALID_DATA = "INVALID_IMAGE_DATA", /** Write operation failed */ WRITE_FAILED = "WRITE_FAILED", /** Write operation timed out */ WRITE_TIMEOUT = "WRITE_TIMEOUT" } /** * PrintJobError - Specialized error for print job failures * * @example * ```typescript * throw new PrintJobError( * PrintJobErrorCode.WRITE_FAILED, * 'Failed to send data to printer', * originalError * ); * ``` */ export declare class PrintJobError extends BluetoothPrintError { readonly jobErrorCode: PrintJobErrorCode; constructor(jobErrorCode: PrintJobErrorCode, message: string, originalError?: Error); /** * Converts PrintJobErrorCode to base ErrorCode */ private static _toBaseCode; /** * Checks if an error is a print job error */ static isPrintJobError(error: unknown): error is PrintJobError; }