import type { IAppInstalledInfo } from "../common/declarations"; export interface DevicesService extends NodeJS.EventEmitter { } export declare abstract class DevicesService { abstract platform: string; abstract hasDevices: boolean; abstract deviceCount: number; abstract execute(action: (device: Mobile.IDevice) => Promise, canExecute?: (dev: Mobile.IDevice) => boolean, options?: { allowNoDevices?: boolean; }): Promise[]>; abstract initialize(data?: Mobile.IDevicesServicesInitializationOptions): Promise; abstract addDeviceDiscovery(deviceDiscovery: Mobile.IDeviceDiscovery): void; abstract getDevices(): Mobile.IDeviceInfo[]; abstract getDevice(deviceOption: string): Promise; abstract getDevicesForPlatform(platform: string): Mobile.IDevice[]; abstract getDeviceInstances(): Mobile.IDevice[]; abstract getDeviceByDeviceOption(): Mobile.IDevice; abstract isAndroidDevice(device: Mobile.IDevice): boolean; abstract isiOSDevice(device: Mobile.IDevice): boolean; abstract isiOSSimulator(device: Mobile.IDevice): boolean; abstract isOnlyiOSSimultorRunning(): boolean; abstract isAppInstalledOnDevices(deviceIdentifiers: string[], appIdentifier: string, framework: string, projectDir: string): Promise[]; abstract setLogLevel(logLevel: string, deviceIdentifier?: string): void; abstract deployOnDevices(deviceIdentifiers: string[], packageFile: string, packageName: string, framework: string, projectDir: string): Promise[]; abstract getDeviceByIdentifier(identifier: string): Mobile.IDevice; abstract mapAbstractToTcpPort(deviceIdentifier: string, appIdentifier: string, framework: string): Promise; abstract getDebuggableApps(deviceIdentifiers: string[]): Promise[]; abstract getDebuggableViews(deviceIdentifier: string, appIdentifier: string): Promise; abstract getInstalledApplications(deviceIdentifier: string): Promise; abstract getEmulatorImages(options?: Mobile.IListEmulatorsOptions): Promise; abstract startEmulator(options?: Mobile.IStartEmulatorOptions): Promise; abstract startDeviceDetectionInterval(deviceInitOpts?: Mobile.IDeviceLookingOptions): void; abstract stopDeviceDetectionInterval(): void; abstract startEmulatorDetectionInterval(opts?: Mobile.IHasDetectionInterval): void; abstract stopEmulatorDetectionInterval(): void; abstract pickSingleDevice(options: Mobile.IPickSingleDeviceOptions): Promise; abstract getPlatformsFromDeviceDescriptors(deviceDescriptors: ILiveSyncDeviceDescriptor[]): string[]; }