import { ConfigurationChunk, image, imageOptions } from '../tools/formatters'; import { PrinterLanguage, LineSegment } from './base-printer-language'; import * as utils from '../tools/utils'; import * as formatters2 from '../tools/formatters'; /** * This class implements the generic text printer language used by most printer brands. * * IMPORTANT: This is used to print text only. Images and other graphics (barcodes, qr codes) are not supported. */ export declare class TextPrinterLanguage extends PrinterLanguage { constructor(); /** @ignore */ protected lines: any[]; /** * Changes the current coordinates of the printer for printing the next line * * IMPORTANT: Coordinates are not supported in this mode, so this method is ignored. * @param xCoord - The new X coordinate (used for left/right alignment) * @param zCoord - The new Z coordinate (used for up/down alignment) */ updateCoordinates(xCoord?: number, zCoord?: number): void; /** * Used to print a horizontal ruler on the paper * @param ruler - The character to use for the ruler */ printHorizRuler(ruler: string): void; /** * Used to print a text line on the paper. * @param line - An array of LineSegment objects. Each LineSegment object contains the text to print and the style to use. */ printLine(line: Array): void; /** * Use to print an image on the paper * * IMPORTANT: Images are not supported in this mode, so this method is ignored. * @param imageDataInBase64 - Contains the image data in a format that can be printed by zebra printers * @param width - The width of the image in dots * @param height - The width of the image in dots * @param alignment - How the image is aligned on the paper */ printImage(imageDataInBase64: any, width: number, height: number, alignment: utils.Alignment, options: imageOptions): void; /** * Use this to begin printing a new document. * @returns {string} the document to print in plain text format */ printDocument(): string; printDocumentAsync(): Promise; /** * Used to initialise the default values for the properties of the class */ init(config?: any): void; /** * Can be used to change the current configuration of the printer * * IMPORTANT: Changing printer configuration is not supported in this mode, so this method is ignored. */ changeConfiguration(chunk: ConfigurationChunk): void; /** * Can be used to specify how a word is printed. This is useful for printing text containing special characters (arabic, french, etc.) * @param word - The word to print * @param options - Options for controlling how the word is printed * @returns - The text to print. Because the printer is in line mode, just return the word */ renderWord(word: string): string; printImageRow(images: Array, width: number, height: number, alignment: utils.Alignment, options?: imageOptions): Promise; printBarcode(barcodeData: string, barcodeType: utils.Barcode, height: number, width: number, offset: number, alignment: utils.Alignment, options?: formatters2.barcodeOptions): void; }