UNPKG

@bistroo/capacitor-plugin-sunmi

Version:
44 lines (43 loc) 1.04 kB
import type { PluginListenerHandle } from '@capacitor/core'; export declare type TableRow = { value: string; size: number; alignment: 0 | 1 | 2; }; export interface SunmiPlugin { start(): void; table(options: { rows: TableRow[]; }): void; text(options: { text: string; }): void; line(options: { text?: string; wrap: boolean; }): void; wrap(): void; bold(): void; normal(): void; align(options: { direction: "LEFT" | "CENTER" | "RIGHT"; }): void; print(): Promise<void>; image(options: { image: string; }): void; font(options: { type: number; }): void; fontSize(options: { size: number; }): void; deviceInfo(): Promise<{ serial_number: string; model: string; }>; raw(text: string): Promise<void>; addListener(eventName: 'printer-state', listenerFunc: (response: { status: number; }) => void): Promise<PluginListenerHandle> & PluginListenerHandle; }