import { line, text } from "./formatters"; import { PrinterLanguage } from "../languages/base-printer-language"; export declare const EOL = "\n"; export declare enum PrinterEncoding { UTF_8 = "utf-8", ASCII = "ascii", Windows1251 = "1251", ISO_8859_5 = "8859-5", CP_866 = "cp866", CP_864 = "cp864", CP_1256 = "cp1256", CP_863 = "cp863", CP_858 = "cp858", KOI8_R = "koi8-r" } /** used to choose a font style */ export declare enum FontStyle { Normal = "normal", Bold = "bold", Italic = "italic", Underlined = "underlined", Strikethrough = "strikethrough", BoldStrikethrough = "boldstrikethrough" } /** Used when aligning text */ export declare enum Alignment { Left = "left", Right = "right", Center = "center" } export declare enum Barcode { Aztec = "Aztec", Code11 = "Code11", Interleaved2of5 = "Interleaved2of5", Code39 = "Code39", Code49 = "Code49", PlanetCodeBar = "PlanetCodeBar", PDF417 = "PDF417", EAN8 = "EAN8", UPCE = "UPCE", Code93 = "Code93", CodaBlockF = "CodaBlock", Code128 = "Code128", UPSMaxiCode = "UPSMaxiCode", EAN13 = "EAN13", MicroPDF417 = "MicroPDF417", ANSICodaBar = "ANSICodaBar", QRCode = "QRCode", GS1DataBar = "GS1DataBar", UPCA = "UPCA" } /** Used when encoding ZPL images */ export declare enum ImageEncoding { Z64 = "Z64", Hex = "hex" } export declare enum ImageSourceEncoding { Base64 = "Base64", Text = "text" } /** * Used to pad a string with a character to a specified length * @param value - The string to pad * @param char - The character to pad with * @param length - How long should be the new string * @param side - Which side of the string to pad. The default value is Alignment.Left. * If the value is Alignment.Center, the padding will be applied to both sides of the text * @returns The padded string */ export declare function pad(value: string, char: string, length: number, side?: Alignment): string; /** * Returns a string with two decimal places. If the number passed is undefined or null, it will return '0.00' * @param cents The amount to convert * @returns The converted amount as string */ export declare function money(cents: number): string; /** * Used to replace escaped special charaters with their actual values, so they can be printed correctly * * @param chunk the chunk to replace the special characters in. Currently only supports the following types: text, line * @param printerLanguage the printer language to use when replacing the special characters. Based on the printer language, the output may differ * @returns the chunk */ export declare function replaceSpecialChars(chunk: text | line, printerLanguage: PrinterLanguage): text | line;