/** * @enum {string} - event names */ export declare enum CIDPrinterListenerTypes { PRINTER_LIBRARY = "printerLibraryEvent" } /** * @enum {number} - Licstat */ export declare enum LicenseStatus { LICENSE_INVALID = 1, LICENSE_VALID = 2, LICENSE_EVAL_INVALID = 3, LICENSE_EVAL_VALID = 4, LICENSE_EXPIRED = 5 } export declare enum EventType { SUCCESS = 0, NOTIFY = 1, FAILED = 2 } export declare enum PrinterLibraryActionType { NONE = 0, INITIALIZE = 1, BLUETOOTH_INITIALIZE = 2, BLUETOOTH_ENABLE = 3, BLUETOOTH_DISABLE = 4, DISCOVER_START = 5, DISCOVER_DETECT = 6, DISCOVER_FINISH = 7, CONNECT = 8, DISCONNECT = 9, PRINT = 10, STATUS = 11, CONFIGURE = 12, BLUETOOTH_TURNED_OFF = 13, BLUETOOTH_TURNED_ON = 14, LICENSE_ACTIVATION = 15, FILEUPLOAD = 16, EXCEPTION = 17 } export declare enum PrinterStatusType { OK = 0, OK_WAITING_TO_DISPENSE = 1, OK_STILL_PRINTING = 2, COVER_OPEN = 4, PAPER_OUT_BEFORE_PRINT = 5, PAPER_OUT = 6, OFFLINE = 7, RESET = 8, ISONLINE = 9, BATTERY_NOT_OK = 10, PRINTER_OK = 11, ERROR = 12, NO_CONNECTION = 13, NOT_REGISTERED = 14, COMMAND_FAILED = 15, PRINT_HALT = 16, NO_RESPONSE = 17, MEDIA_ERROR = 18, LABEL_NOT_DETECTED = 19, CONNECTED = 20, STATUS_UNKNOWN = 99 } export declare enum ReferenceTicketType { DOT_MATRIX = 0 } export declare enum MediaType { GAP = 0, IMARK = 1 } export declare enum PrinterVendor { UNKNOWN = 0, ZEBRA = 1, SATO = 2, HONEYWELL = 3, GOOJPRT = 4, ESCPOS = 5 } export declare enum SatoPrinterModel { UNKNOWN = 0, MB200i = 1, PW208NX = 2, CT4LX = 3 } export declare namespace SatoPrinterModel { function valueOf(str: string): number; function values(): any[]; } export declare enum HoneywellPrinterModel { UNKNOWN = 0, PC23D = 1, PF4i = 2, PM43C = 3 } export declare namespace HoneywellPrinterModel { function valueOf(str: string): number; function values(): any[]; } export interface PrinterLibraryEvent { sender: string; type: EventType; message: string; error: number; data?: ResultClass; action: PrinterLibraryActionType; } export declare class PrinterLibraryEvent implements PrinterLibraryEvent { constructor(sender: string, type: EventType, message: string, error: number, data: ResultClass, action: PrinterLibraryActionType); } export interface ResultClass { } export declare class DeviceResult implements ResultClass { } /** * */ export interface InitResult { permissions: string[]; } /** * @implements {ResultClass, InitResult} * * InitResult - used with initialization events */ export declare class InitResult implements ResultClass, InitResult { constructor(permissions: string[]); } export interface LicenseResult { status: LicenseStatus; } export declare class LicenseResult implements ResultClass, LicenseResult { constructor(status: LicenseStatus); } export interface PrinterResult { statusmsg: string; status: PrinterStatusType; } export declare class PrinterResult implements ResultClass, PrinterResult { constructor(status: PrinterStatusType, statusmsg: string); } export interface PrinterCapabilities { dots: number; dpi: number; dpm: number; labelwidth: number; labelheight: number; } export declare class PrinterCapabilities implements PrinterCapabilities { constructor(dots: number, dpi: number, dpm: number, labelwidth: number, labelheight: number); } export interface ConfigurationResult { capabilities?: PrinterCapabilities; } export declare class ConfigurationResult implements ConfigurationResult { constructor(capabilities: PrinterCapabilities); } export interface BluetoothResult { adapteradress: string; adaptername: string; paireddevices?: Device[]; connecteddevice?: Device; connectingdevice?: Device; disconnecteddevice?: Device; discovereddevices?: Device[]; discovereddevice?: Device; setBondedDevices(devices: Device[]): void; } export declare class BluetoothResult implements BluetoothResult { constructor(adapteraddress: string, adaptername: string); } export interface Device { address: string; name: string; bluetoothclass: number; type: number; vendor?: PrinterVendor; model?: number; } export declare class Device implements Device { constructor(name: string, address: string, bluetoothclass: number, type: number, vendor: PrinterVendor, model: number); getPrinterModel(): any; }