type WriteTextProps = { bold?: boolean, fontSize?: number, } export type ALIGN = 0 | 1 | 2 | 4; export type PRINTERTYPE = 'IPPrinter' | 'BTPrinter' | 'USBPrinter' | 'HarvardPrinter' | 'KassenPrinter'; type PrintColumnProps = { bold?: boolean, fontSize?: number, }; type WriteImageProps = { width?: number, left?: number, } interface RNIposPrinter { ALIGN: { ALIGN_LEFT: 0, ALIGN_CENTER: 1, ALIGN_RIGHT: 2, PARAM_DEFAULT: 4, }, PRINTERTYPE: { IPPrinter: 'IPPrinter', BTPrinter: 'BTPrinter', USBPrinter: 'USBPrinter', HarvardPrinter: 'HarvardPrinter', KassenPrinter: 'KassenPrinter', }, IPPrinter: { EVENTMESSAGE: string, }, BTPrinter: { EVENTMESSAGE: string, }, EVENTVALUE: { TOAST: string, DEVICE_NAME: string, }, initialize: (tipe: PRINTERTYPE) => Promise, setDebug: (isDebug: boolean) => void, hasCutter: (hasCutter: boolean) => void, initializeBTDiscovery: () => Promise, startDiscovery: () => Promise, stopDiscovery: () => Promise, isBluetoothEnabled: () => Promise, enableBluetooth: () => Promise, initializeKassenBTDiscovery: () => Promise, startKassenDiscovery: () => Promise, stopKassenDiscovery: () => Promise, isKassenBluetoothEnabled: () => Promise, enableKassenBluetooth: () => Promise, connect: (ipAddress: string) => Promise, writeTextWProps: (text: string, property?: WriteTextProps) => Promise, writeText: (text: string) => Promise, addTextAlign: (align: ALIGN) => Promise, writeFeed: (length: number) => Promise, writeCut: () => Promise, writeImage: (base64encodeStr: string, property?: WriteImageProps) => Promise, writePulse: () => Promise, printColumn: (columnWidth: number[], columnAlign: ALIGN[], columnTexts: string[], options?: PrintColumnProps) => Promise, writeBeep: (numOfBeep: number, buzzingTime: number) => Promise, startPrint: () => Promise; disconnect: () => Promise; } declare const ReactNativeIposPrinter: RNIposPrinter; export default ReactNativeIposPrinter; export { };