/** * 字符串常量集中管理 * * Phase 7+ 优化:提取重复字符串常量为命名常量 * 减少代码中的硬编码字符串,提高可维护性和一致性 */ /** 作业状态 */ export declare const JOB_STATUS: { readonly PENDING: "pending"; readonly PROCESSING: "processing"; readonly COMPLETED: "completed"; readonly FAILED: "failed"; readonly CANCELLED: "cancelled"; readonly PAUSED: "paused"; }; /** 连接状态 */ export declare const CONNECTION_STATUS: { readonly CONNECTED: "connected"; readonly DISCONNECTED: "disconnected"; readonly CONNECTING: "connecting"; readonly DISCONNECTING: "disconnecting"; }; /** 设备状态 */ export declare const DEVICE_STATUS: { readonly IDLE: "idle"; readonly BUSY: "busy"; readonly ERROR: "error"; }; /** 生命周期模式 */ export declare const LIFECYCLE_MODE: { readonly TRANSIENT: "transient"; readonly SINGLETON: "singleton"; readonly SCOPED: "scoped"; }; /** 打印机事件 */ export declare const PRINTER_EVENTS: { readonly CONNECT: "connect"; readonly DISCONNECT: "disconnect"; readonly STATUS_CHANGE: "status-change"; readonly DATA: "data"; readonly ERROR: "error"; readonly READY: "ready"; readonly COMPLETE: "complete"; readonly FAIL: "fail"; }; /** 作业事件 */ export declare const JOB_EVENTS: { readonly JOB_ADDED: "job-added"; readonly JOB_REMOVED: "job-removed"; readonly JOB_STARTED: "job-started"; readonly JOB_COMPLETED: "job-completed"; readonly JOB_FAILED: "job-failed"; readonly JOB_CANCELLED: "job-cancelled"; readonly BATCH_READY: "batch-ready"; readonly AUTO_FLUSH: "auto-flush"; readonly RETRY_EXECUTED: "retry-executed"; }; /** 连接事件 */ export declare const CONNECTION_EVENTS: { readonly CONNECTED: "connected"; readonly DISCONNECTED: "disconnected"; readonly RECONNECTING: "reconnecting"; readonly RECONNECTED: "reconnected"; readonly DEVICE_FOUND: "device-found"; readonly DEVICE_LOST: "device-lost"; }; /** 队列事件 */ export declare const QUEUE_EVENTS: { readonly QUEUE_CHANGED: "queue-changed"; readonly QUEUE_EMPTY: "queue-empty"; readonly QUEUE_FULL: "queue-full"; }; /** 支持的编码格式 */ export declare const SUPPORTED_ENCODINGS: { readonly UTF8: "UTF-8"; readonly GBK: "GBK"; readonly GB2312: "GB2312"; readonly BIG5: "BIG5"; readonly EUC_KR: "EUC-KR"; readonly SHIFT_JIS: "SHIFT-JIS"; readonly ISO_2022_JP: "ISO-2022-JP"; }; /** 支持的半调算法 */ export declare const HALFTONE_ALGORITHMS: { readonly NONE: "none"; readonly FloydSteinberg: "floyd-steinberg"; readonly Atkinson: "atkinson"; readonly Sierra: "sierra"; readonly Stucki: "stucki"; readonly Halftone: "halftone"; readonly Nearest: "nearest"; readonly Bilinear: "bilinear"; readonly Diamond: "diamond"; readonly Round: "round"; readonly Ordered: "ordered"; }; /** 支持的条码类型 */ export declare const BARCODE_TYPES: { readonly EAN13: "EAN13"; readonly EAN8: "EAN8"; readonly CODE39: "CODE39"; readonly CODE128: "CODE128"; readonly UPCA: "UPCA"; }; /** 文本对齐方式 */ export declare const ALIGNMENT: { readonly LEFT: "left"; readonly CENTER: "center"; readonly RIGHT: "right"; }; /** QR 码校正码位置 */ export declare const QR_CORRECTION_POSITIONS: { readonly TOP_LEFT: "topLeft"; readonly TOP_RIGHT: "topRight"; readonly BOTTOM_LEFT: "bottomLeft"; readonly BOTTOM_RIGHT: "bottomRight"; readonly TOP: "top"; readonly BOTTOM: "bottom"; readonly LEFT: "left"; readonly RIGHT: "right"; readonly CROSS: "cross"; }; /** 测试用文本 */ export declare const TEST_TEXT: { readonly CHINESE: "你好世界"; readonly ENGLISH: "Hello World"; readonly TEST_EAN13: "1234567890128"; }; /** 默认项目名称 */ export declare const PROJECT_NAME = "taro-bluetooth-print"; /** 设备 ID 前缀 */ export declare const DEVICE_ID_PREFIX = "device-id"; /** 插件名称占位符 */ export declare const PLUGIN_NAME_PLACEHOLDER = "${pluginName}"; /** 事件占位符 */ export declare const EVENT_PLACEHOLDER = "${String(event)}";