import type { TurboModule } from 'react-native'; export interface Spec extends TurboModule { initPOSLink(ip: string, port?: string, timeout?: number): Promise<{ serialNumber?: { modelName: string; appName: string; serialNumber: string; }; status: boolean; }>; /** * Kết nối tới terminal theo bất kỳ kiểu giao tiếp nào SDK hỗ trợ. * config.type: "TCP" | "SSL" | "HTTP" | "HTTPS" | "UART" | "USB" | "AIDL" | "BLUETOOTH" */ initPOSLinkConn(config: { type: string; ip?: string; port?: string; serialPort?: string; baudRate?: string; deviceName?: string; macAddr?: string; timeout?: number; }): Promise<{ serialNumber?: { modelName: string; appName: string; serialNumber: string; }; status: boolean; }>; requestUsbPermission(): Promise; /** Liệt kê thiết bị USB đang cắm (dùng để chọn deviceName cho type: 'USB'). */ listUsbDevices(): Promise>; /** Danh sách baud rate hợp lệ cho kết nối UART. */ getSupportedBaudRates(): Promise; /** Quét các cổng serial hiện có (dùng để chọn `serialPort` cho type: 'UART'). */ listSerialPorts(): Promise; /** Kiểm tra Bluetooth đã bật chưa. */ checkBluetoothEnable(): Promise; /** * Bắt đầu quét thiết bị Bluetooth (gom vào list nội bộ, UI poll getBluetoothDeviceList). * @param useBle true = quét BLE, false = Bluetooth classic. * @param timeout thời lượng quét truyền cho scanner (vd 1000). */ startBluetoothSearch(useBle: boolean, timeout: number): Promise; /** Dừng quét Bluetooth và xoá list nội bộ. */ stopBluetoothSearch(): Promise; /** Lấy list thiết bị Bluetooth đã phát hiện: [{ name, mac, rssi }]. */ getBluetoothDeviceList(): Promise>; payment(data: { transactionId?: string; amount?: number; tip?: number; paymentType?: number; ecrRefNum?: string; showTip?: boolean; }): Promise>; refund(data: { amount: number; ecrRefNum: string; }): Promise>; voidTransaction(data: { ecrRefNum: string; }): Promise>; batchCloseout(): Promise>; getBatchInformation(): Promise>; checkVoidOrRefundTransaction(ecrRefNum: string): Promise>; cancelTransaction(): Promise; } declare const _default: Spec; export default _default; //# sourceMappingURL=NativePaxPoslink.d.ts.map