import { Observable } from 'rxjs'; /** * Scan options provided when starting scan */ export interface DeviceScannerOptions { /** * Timeout in milliseconds */ timeout?: number; } export interface DeviceScanner { /** * Observable on scanner state (true = scanner is running) */ scanning: Observable; /** * return true if scanner is currently running */ isScanning: boolean; /** * Emit scan results */ results: Observable; /** * Start scan * Will return an Observable that emitts @{link DeviceScanResult} each time * a device is disoverd * @param option */ start(option?: DeviceScannerOptions): Promise; /** * Stop scan */ stop(): Promise; }