import { BluetoothPrintError } from './baseError'; /** * Connection-related error codes */ export declare enum ConnectionErrorCode { /** Failed to establish connection */ FAILED = "CONNECTION_FAILED", /** Connection attempt timed out */ TIMEOUT = "CONNECTION_TIMEOUT", /** Device not found during discovery */ NOT_FOUND = "DEVICE_NOT_FOUND", /** Device disconnected unexpectedly */ DISCONNECTED = "DEVICE_DISCONNECTED", /** Bluetooth service not found on device */ SERVICE_NOT_FOUND = "SERVICE_NOT_FOUND", /** Bluetooth characteristic not found */ CHARACTERISTIC_NOT_FOUND = "CHARACTERISTIC_NOT_FOUND", /** Service discovery failed */ DISCOVERY_FAILED = "SERVICE_DISCOVERY_FAILED", /** Platform doesn't support Bluetooth */ PLATFORM_UNSUPPORTED = "PLATFORM_NOT_SUPPORTED" } /** * ConnectionError - Specialized error for connection-related failures * * @example * ```typescript * throw new ConnectionError( * ConnectionErrorCode.TIMEOUT, * 'Connection timed out after 30s', * originalError * ); * ``` */ export declare class ConnectionError extends BluetoothPrintError { constructor(code: ConnectionErrorCode, message: string, originalError?: Error); /** * Converts ConnectionErrorCode to base ErrorCode */ private static _toBaseCode; /** * Checks if an error is a connection-related error */ static isConnectionError(error: unknown): error is ConnectionError; }