import { IPrintOptions } from './interface/iPrintOptions'; export declare class BluetoothEscposPrinter { /** * 初始化打印机 */ static printerInit(): Promise; /** * printer the buffer data and feed (feed lines). */ static printAndFeed(feed: number): Promise; /** * 设置打印机左边距 * @param sp */ static printerLeftSpace(sp: number): Promise; /** * 设置行间距 * @param sp */ static printerLineSpace(sp: number): Promise; /** * 设置文本的下线 * @param sp 0-关,1-开,2-deeper */ static printerUnderLine(sp?: 'OFF' | 'ON' | 'DEEPER'): Promise; /** * 设置打印机对齐方式 * @param align */ static printerAlign(align?: 'LEFT' | 'CENTER' | 'RIGHT'): Promise; /** * 打印文字 * @param text * @param options */ static printText(text: string, options?: IPrintOptions): Promise; /** * 按列打印文本 * @param columnWidths 各列宽度 * @param columnAligns 各列对齐方式 * @param columnTexts 各列内容 * @param options */ static printColumn(columnWidths: number[], columnAligns: ('LEFT' | 'CENTER' | 'RIGHT')[], columnTexts: string[], options?: IPrintOptions): Promise; /** * 设置打印机宽度 * @param width */ static setWidth(width: number): Promise; /** * 打印图片 * @param base64encodeStr * @param options */ static printPic(base64encodeStr: string, options: { width: number; left: number; }): Promise; /** * prints the selft test. */ static setfTest(): Promise; /** * 设置线的旋转。 */ static rotate(state?: 'ON' | 'OFF'): Promise; /** * 设置行的斑点 */ static setBlob(weight: number): Promise; /** * 打印二维码 * @param content * @param size * @param correctionLevel */ static printQRCode(content: string, size: number, correctionLevel?: 'M' | 'L' | 'H' | 'Q'): Promise; /** * 打印条形码 * @param content * @param nType * @param nWidth * @param nHeight * @param nHriFontType * @param nHriFontPosition */ static printBarCode(content: string, nType: 'UPC_A' | 'UPC_E' | 'JAN13' | 'JAN8' | 'CODE39' | 'ITF' | 'CODABAR' | 'CODE93' | 'CODE128', nWidth: number, nHeight: number, nHriFontType: number, nHriFontPosition: number): Promise; }