import type { Simctl } from '../simctl'; import type { DeviceInfo } from '../types'; /** * Parse the list of existing Simulator devices to represent * it as convenient mapping. * * @param platform - The platform name, for example 'watchOS'. * @return The resulting mapping. Each key is platform version, * for example '10.3' and the corresponding value is an * array of the matching DeviceInfo instances. * @throws {Error} If the corresponding simctl subcommand command * returns non-zero return code. */ export declare function getDevicesByParsing(this: Simctl, platform?: string | null): Promise>; /** * Parse the list of existing Simulator devices to represent * it as convenient mapping for the particular platform version. * * @param forSdk - The sdk version, * for which the devices list should be parsed, * for example '10.3'. * @param platform - The platform name, for example 'watchOS'. * @return If _forSdk_ is set then the list * of devices for the particular platform version. * Otherwise the same result as for getDevicesByParsing * function. * @throws {Error} If the corresponding simctl subcommand command * returns non-zero return code or if no matching * platform version is found in the system. */ export declare function getDevices(this: Simctl, forSdk: string, platform?: string | null): Promise; export declare function getDevices(this: Simctl, forSdk?: undefined | null, platform?: string | null): Promise>; /** * Get the runtime for the particular platform version using --json flag * * @param platformVersion - The platform version name, * for example '10.3'. * @param platform - The platform name, for example 'watchOS'. * @return The corresponding runtime name for the given * platform version. */ export declare function getRuntimeForPlatformVersionViaJson(this: Simctl, platformVersion: string, platform?: string): Promise; /** * Get the runtime for the particular platform version. * * @param platformVersion - The platform version name, * for example '10.3'. * @param platform - The platform name, for example 'watchOS'. * @return The corresponding runtime name for the given * platform version. */ export declare function getRuntimeForPlatformVersion(this: Simctl, platformVersion: string, platform?: string): Promise; /** * Get the list of device types available in the current Xcode installation * * @return List of the types of devices available * @throws {Error} If the corresponding simctl command fails */ export declare function getDeviceTypes(this: Simctl): Promise; /** * Get the full list of runtimes, devicetypes, devices and pairs as Object * * @return Object containing device types, runtimes devices and pairs. * The resulting JSON will be like: * { * "devicetypes" : [ * { * "name" : "iPhone 4s", * "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-4s" * }, * ... * ], * "runtimes" : [ * { * "version" : '13.0', * "bundlePath" : '/Applications/Xcode11beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime', * "isAvailable" : true, * "name" : 'iOS 13.0', * "identifier" : 'com.apple.CoreSimulator.SimRuntime.iOS-13-0', * "buildversion" : '17A5534d' * }, * ... * }, * "devices" : * { * 'com.apple.CoreSimulator.SimRuntime.iOS-13-0': [ [Object], [Object] ] }, * ... * }, * "pairs" : {} } * * } * @throws {Error} If the corresponding simctl command fails */ export declare function list(this: Simctl): Promise; //# sourceMappingURL=list.d.ts.map