import { BluetoothPrintError } from './baseError'; /** * Command building error codes */ export declare enum CommandBuildErrorCode { /** Invalid configuration */ INVALID_CONFIG = "INVALID_CONFIGURATION", /** Encoding not supported */ ENCODING_NOT_SUPPORTED = "ENCODING_NOT_SUPPORTED", /** Invalid image data */ INVALID_IMAGE = "INVALID_IMAGE_DATA", /** Invalid QR code data */ INVALID_QR = "INVALID_QR_DATA", /** Driver error */ DRIVER_ERROR = "DRIVER_ERROR" } /** * CommandBuildError - Specialized error for command building failures * * @example * ```typescript * throw new CommandBuildError( * CommandBuildErrorCode.ENCODING_NOT_SUPPORTED, * 'Encoding "EUC-JP" is not supported', * originalError * ); * ``` */ export declare class CommandBuildError extends BluetoothPrintError { readonly buildErrorCode: CommandBuildErrorCode; constructor(buildErrorCode: CommandBuildErrorCode, message: string, originalError?: Error); /** * Converts CommandBuildErrorCode to base ErrorCode */ private static _toBaseCode; /** * Checks if an error is a command build error */ static isCommandBuildError(error: unknown): error is CommandBuildError; }