import { EscPos, EscPosOptions } from './escPosDriver'; /** * Xprinter options (same as EscPosOptions) */ export type XprinterOptions = EscPosOptions; /** * XprinterDriver for Xprinter (芯烨) thermal printers * * 芯烨打印机基于 ESC/POS 指令集,此驱动扩展了标准 EscPos * 添加了芯烨特定的命令支持 * * @example * ```typescript * import { XprinterDriver } from 'taro-bluetooth-print'; * * const driver = new XprinterDriver(); * let commands = driver.init(); * commands = driver.text('Hello 芯烨!', 'GBK'); * commands = driver.cut(); * ``` */ export declare class XprinterDriver extends EscPos { /** * 芯烨打印机特定: 增强初始化 * 添加芯烨特定的初始化序列 * * @returns Array of command buffers */ init(): Uint8Array[]; /** * 芯烨打印机特定: 获取打印机状态 * 返回打印机状态字节 * @returns Array of command buffers */ getStatus(): Uint8Array[]; /** * 芯烨打印机特定: 获取详细状态 * 使用 DLE EOT 命令获取不同类型的状态 * @returns Array of command buffers (4 status queries) */ getDetailedStatus(): Uint8Array[]; /** * 芯烨打印机特定: 进纸并切割 * @param lines 进纸行数 * @returns Array of command buffers */ feedAndCut(lines: number): Uint8Array[]; }