import { PluginListenerHandle } from "@capacitor/core"; import { MediaSize, PrinterConfiguration } from "./configuration"; import { TicketData } from "./data"; import { PrinterLibraryEvent, ReferenceTicketType } from "./enums"; import { CIDPrinterInformation } from "./printer"; export interface CIDPrintTimeoutOptions { /** the time the communication protocol waits between send and receive calls (default 0ms) */ gap: number; /** the time the communication protocol waits for a connection request (default 18000ms) */ timeout: number; /** the time the communication protocol waits for the answer to a status request (default 500ms) */ status: number; /** the time the communication protocol waits for the answer to the request for the printerinformation (default 1000ms) */ information: number; /** the time the communication protocol waits for the answer to the request for a formfeed (default 200ms) */ formfeed: number; /** the time the communication protocol waits for the answer to the request for the printerinformation (default 400ms) only used with old SATO printers(MB200i). */ detect: number; } export interface CIDPrintPlugin { activateLicense(options: { licenseKey: string; customerID: string; }): Promise; closeCIDPrinterLib(): void; connectToPreferredPrinter(options: { mac: string; }): void; connectToPreferredPrinter(options: { mac: string; autoreconnect: boolean; timeout: number; }): void; connectToPrinter(options: { address: string; }): void; connectToPrinter(options: { address: string; autoreconnect: boolean; timeout: number; }): void; connectToPrinter(options: { address: string; port: number; }): void; convert(options: { label: string; }): void; disconnectFromPrinter(options: { mac: string; }): void; discoverDevices(options: { timeout: number; }): void; enableBluetoothAdapter(options: { enable: boolean; }): Promise; enableBluetoothPrinting(options: { enable: boolean; }): void; enableCalibration(options: { enable: boolean; }): void; enableClipping(options: { enable: boolean; }): void; enableDebugToFile(options: { enable: boolean; }): void; enableDispendingMode(options: { enable: boolean; }): void; enableNetworkPrinting(options: { enable: boolean; }): void; getLatestConnectState(): Promise; getMediaSize(): Promise; getPairedDevices(): void; getPrinterInformation(): Promise; getPrinterLibraryVersion(): Promise; getPrinterStatus(): void; initCIDPrinterLib(): Promise; isBluetoothAdapterEnabled(): Promise<{ result: boolean; }>; isLibraryInitialized(): Promise<{ result: boolean; }>; printData(options: { data: string; }): void; printLabel(options: { label: string; }): void; printLabelWithData(options: { label: string; data: string[]; }): void; printLabelWithObject(options: { label: string; data: TicketData; quantity: number; }): void; printNativeData(options: { data: string; }): void; printReferenceLabel(options: { labeltype: ReferenceTicketType; }): void; requestPermission(options: { permission: string; }): Promise<{ result: boolean; }>; requestAllPermissions(options: { permissions: string[]; }): Promise<{ result: boolean; }>; sendFormFeed(): void; setAutoReconnect(options: { autoreconnect: boolean; }): void; setConfiguration(options: { config: PrinterConfiguration; }): void; setLTSSensitivity(options: { sensitivity: number; }): void; /** * @param options timeout configuration values. */ setTimeouts(options: CIDPrintTimeoutOptions): void; setupMediaSize(options: { width: number; height: number; }): void; showNavigationBar(options: { show: boolean; }): void; showSettings(options: { show: boolean; }): void; showUI(options: { show: boolean; }): void; uploadFile(options: { file: string; filetype: number; }): void; addListener(eventName: string, listenerFunc: (data: PrinterLibraryEvent) => void): Promise & PluginListenerHandle; removeAllListeners(): void; } export declare class CIDPrintPlugin implements CIDPrintPlugin { }