declare module "@capacitor/core" { interface PluginRegistry { BluetoothSerial: BluetoothSerialPlugin; } } export interface BluetoothSerialPlugin { isEnabled(): Promise; enable(): Promise; scan(): Promise; connect(options: BluetoothConnectOptions): Promise; connectInsecure(options: BluetoothConnectOptions): Promise; disconnect(options: BluetoothConnectOptions): Promise; isConnected(options: BluetoothConnectOptions): Promise; read(options: BluetoothReadOptions): Promise; readUntil(options: BluetoothReadUntilOptions): Promise; enableNotifications(options: BluetoothEnableNotificationsOptions): Promise; disableNotifications(options: BluetoothDisableNotificationsOptions): Promise; } export interface BluetoothEnabledResult { enabled: boolean; } export interface BluetoothScanResult { devices: BluetoothDevice[]; } export interface BluetoothConnectResult { connected: boolean; } export interface BluetoothDataResult { data: string; } export interface BluetoothEnableNotificationsResult { eventName: string; } export interface BluetoothDevice { name: string; id: string; address: string; class: number; uuid: string; rssi: number; } export interface BluetoothConnectOptions { address: string; } export interface BluetoothReadOptions { address: string; } export interface BluetoothReadUntilOptions { address: string; delimiter: string; } export interface BluetoothEnableNotificationsOptions { address: string; delimiter: string; } export interface BluetoothDisableNotificationsOptions { address: string; }