import { PluginCallback } from "@capacitor/core"; export interface SunmiCardReaderPlugin { /** * Start listing to read the card, * you have to initialize the SDK first before calling this functionality. * @returns Promise */ readCard: (callback: PluginCallback) => void; /** * Get the device model details. * @returns Promise */ getDeviceModel: () => Promise; /** * Initializes the SDK to start reading cards. * @returns Promise */ initSunmiSDK: () => Promise; /** * Closes the card reader. * @returns Promise */ closeCardReader: () => Promise; } export type SunmiCardResult = { uuid: string; }; export type SunmiCardDeviceModel = { model: string; isP2: boolean; isP1N: boolean; isP2Lite: boolean; isP2Pro: boolean; isP14G: boolean; };