import { BluetoothAutomationProductConfig, BluetoothDeviceMonitorStateType, BluetoothAutomationMode } from './constants'; import { BlueToothAdapter4Mp, BlueToothDeviceInfo, DeviceAdapter } from 'qcloud-iotexplorer-bluetooth-adapter'; import { BluetoothAutomationUserConfig } from './BluetoothAutomationUserConfig'; import { BluetoothDeviceMonitorState } from './BluetoothDeviceMonitorState'; import { BluetoothAutomationReporter } from './BluetoothAutomationReporter'; export interface IBluetoothDeviceMonitor { readonly isDeviceAdapterBusy: boolean; readonly isDeviceAdapterInUse: boolean; readonly isDevMode: boolean; readonly explorerDeviceId: string; readonly bluetoothDeviceId: string; readonly blueToothAdapter: BlueToothAdapter4Mp; readonly reporter: BluetoothAutomationReporter; readonly modeConfig: BluetoothAutomationMode; readonly currentState: BluetoothDeviceMonitorState; readonly commonReportParams: { explorerDeviceId: string; bluetoothDeviceId: string; }; readonly config: BluetoothAutomationProductConfig; readonly userConfig: BluetoothAutomationUserConfig; enterState(oldState: BluetoothDeviceMonitorState, newState: BluetoothDeviceMonitorState): any; getDeviceAdapter(): DeviceAdapter; setDeviceAdapter(adapter: DeviceAdapter): void; tryGetDeviceAdapter(): DeviceAdapter | null; setBluetoothBackgroundMode(enabled: boolean): Promise; prefetchDeviceTicket(): Promise; disableDeviceAutomation(): Promise; handleUserAuthDeny(): void; getSearchResult(): Promise; fetchAutomationConfig(): Promise; getCurrentStateByType(stateType: BluetoothDeviceMonitorStateType): T | null; reportDeviceEvent(options: { EventId: string; Params: Record; }): Promise; controlDeviceProperty(deviceData: Record): Promise; startSolution(): void; stopRunningSolution(): void; updateConfig(config: BluetoothAutomationProductConfig): void; }