import { EscPos, EscPosOptions } from './escPosDriver'; /** * SprtDriver options (same as EscPosOptions) */ export type SprtDriverOptions = EscPosOptions; /** * SprtDriver for Sprt (思普瑞特) thermal printers * * 思普瑞特打印机基于 ESC/POS 指令集,此驱动扩展了标准 EscPos * 添加了思普瑞特特定的命令支持,特别是低功耗相关的功能 * * @example * ```typescript * import { SprtDriver } from 'taro-bluetooth-print'; * * const driver = new SprtDriver(); * let commands = driver.init(); * commands = driver.text('Hello 思普瑞特!', 'GBK'); * commands = driver.cut(); * ``` */ export declare class SprtDriver extends EscPos { /** * 思普瑞特特定: 进入低功耗/休眠模式 * @returns Array of command buffers */ sleep(): Uint8Array[]; /** * 思普瑞特特定: 唤醒打印机 * 发送空字符或特定序列唤醒休眠中的打印机 * @returns Array of command buffers */ wakeUp(): Uint8Array[]; /** * 思普瑞特特定: 深度唤醒 * 使用完整的初始化序列唤醒打印机 * @returns Array of command buffers */ wakeUpDeep(): Uint8Array[]; /** * 思普瑞特特定: 使能/禁止自动休眠 * @param enable true=使能自动休眠, false=禁止自动休眠 * @returns Array of command buffers */ setAutoSleep(enable: boolean): Uint8Array[]; }