appium 2.0.0-beta.9 → 2.0.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (208) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +149 -58
  3. package/build/lib/appium.d.ts +229 -0
  4. package/build/lib/appium.d.ts.map +1 -0
  5. package/build/lib/appium.js +677 -449
  6. package/build/lib/appium.js.map +1 -0
  7. package/build/lib/cli/args.d.ts +17 -0
  8. package/build/lib/cli/args.d.ts.map +1 -0
  9. package/build/lib/cli/args.js +263 -300
  10. package/build/lib/cli/args.js.map +1 -0
  11. package/build/lib/cli/driver-command.d.ts +102 -0
  12. package/build/lib/cli/driver-command.d.ts.map +1 -0
  13. package/build/lib/cli/driver-command.js +131 -81
  14. package/build/lib/cli/driver-command.js.map +1 -0
  15. package/build/lib/cli/extension-command.d.ts +402 -0
  16. package/build/lib/cli/extension-command.d.ts.map +1 -0
  17. package/build/lib/cli/extension-command.js +799 -383
  18. package/build/lib/cli/extension-command.js.map +1 -0
  19. package/build/lib/cli/extension.d.ts +23 -0
  20. package/build/lib/cli/extension.d.ts.map +1 -0
  21. package/build/lib/cli/extension.js +70 -68
  22. package/build/lib/cli/extension.js.map +1 -0
  23. package/build/lib/cli/parser.d.ts +84 -0
  24. package/build/lib/cli/parser.d.ts.map +1 -0
  25. package/build/lib/cli/parser.js +252 -148
  26. package/build/lib/cli/parser.js.map +1 -0
  27. package/build/lib/cli/plugin-command.d.ts +99 -0
  28. package/build/lib/cli/plugin-command.d.ts.map +1 -0
  29. package/build/lib/cli/plugin-command.js +125 -81
  30. package/build/lib/cli/plugin-command.js.map +1 -0
  31. package/build/lib/cli/utils.d.ts +29 -0
  32. package/build/lib/cli/utils.d.ts.map +1 -0
  33. package/build/lib/cli/utils.js +72 -51
  34. package/build/lib/cli/utils.js.map +1 -0
  35. package/build/lib/config-file.d.ts +100 -0
  36. package/build/lib/config-file.d.ts.map +1 -0
  37. package/build/lib/config-file.js +207 -0
  38. package/build/lib/config-file.js.map +1 -0
  39. package/build/lib/config.d.ts +49 -0
  40. package/build/lib/config.d.ts.map +1 -0
  41. package/build/lib/config.js +262 -223
  42. package/build/lib/config.js.map +1 -0
  43. package/build/lib/constants.d.ts +56 -0
  44. package/build/lib/constants.d.ts.map +1 -0
  45. package/build/lib/constants.js +73 -0
  46. package/build/lib/constants.js.map +1 -0
  47. package/build/lib/extension/driver-config.d.ts +82 -0
  48. package/build/lib/extension/driver-config.d.ts.map +1 -0
  49. package/build/lib/extension/driver-config.js +210 -0
  50. package/build/lib/extension/driver-config.js.map +1 -0
  51. package/build/lib/extension/extension-config.d.ts +270 -0
  52. package/build/lib/extension/extension-config.d.ts.map +1 -0
  53. package/build/lib/extension/extension-config.js +601 -0
  54. package/build/lib/extension/extension-config.js.map +1 -0
  55. package/build/lib/extension/index.d.ts +48 -0
  56. package/build/lib/extension/index.d.ts.map +1 -0
  57. package/build/lib/extension/index.js +105 -0
  58. package/build/lib/extension/index.js.map +1 -0
  59. package/build/lib/extension/manifest-migrations.d.ts +27 -0
  60. package/build/lib/extension/manifest-migrations.d.ts.map +1 -0
  61. package/build/lib/extension/manifest-migrations.js +134 -0
  62. package/build/lib/extension/manifest-migrations.js.map +1 -0
  63. package/build/lib/extension/manifest.d.ts +145 -0
  64. package/build/lib/extension/manifest.d.ts.map +1 -0
  65. package/build/lib/extension/manifest.js +528 -0
  66. package/build/lib/extension/manifest.js.map +1 -0
  67. package/build/lib/extension/package-changed.d.ts +11 -0
  68. package/build/lib/extension/package-changed.d.ts.map +1 -0
  69. package/build/lib/extension/package-changed.js +62 -0
  70. package/build/lib/extension/package-changed.js.map +1 -0
  71. package/build/lib/extension/plugin-config.d.ts +56 -0
  72. package/build/lib/extension/plugin-config.d.ts.map +1 -0
  73. package/build/lib/extension/plugin-config.js +102 -0
  74. package/build/lib/extension/plugin-config.js.map +1 -0
  75. package/build/lib/grid-register.d.ts +10 -0
  76. package/build/lib/grid-register.d.ts.map +1 -0
  77. package/build/lib/grid-register.js +122 -144
  78. package/build/lib/grid-register.js.map +1 -0
  79. package/build/lib/logger.d.ts +3 -0
  80. package/build/lib/logger.d.ts.map +1 -0
  81. package/build/lib/logger.js +5 -17
  82. package/build/lib/logger.js.map +1 -0
  83. package/build/lib/logsink.d.ts +4 -0
  84. package/build/lib/logsink.d.ts.map +1 -0
  85. package/build/lib/logsink.js +189 -184
  86. package/build/lib/logsink.js.map +1 -0
  87. package/build/lib/main.d.ts +62 -0
  88. package/build/lib/main.d.ts.map +1 -0
  89. package/build/lib/main.js +406 -234
  90. package/build/lib/main.js.map +1 -0
  91. package/build/lib/schema/arg-spec.d.ts +143 -0
  92. package/build/lib/schema/arg-spec.d.ts.map +1 -0
  93. package/build/lib/schema/arg-spec.js +164 -0
  94. package/build/lib/schema/arg-spec.js.map +1 -0
  95. package/build/lib/schema/cli-args.d.ts +19 -0
  96. package/build/lib/schema/cli-args.d.ts.map +1 -0
  97. package/build/lib/schema/cli-args.js +220 -0
  98. package/build/lib/schema/cli-args.js.map +1 -0
  99. package/build/lib/schema/cli-transformers.d.ts +5 -0
  100. package/build/lib/schema/cli-transformers.d.ts.map +1 -0
  101. package/build/lib/schema/cli-transformers.js +124 -0
  102. package/build/lib/schema/cli-transformers.js.map +1 -0
  103. package/build/lib/schema/index.d.ts +3 -0
  104. package/build/lib/schema/index.d.ts.map +1 -0
  105. package/build/lib/schema/index.js +19 -0
  106. package/build/lib/schema/index.js.map +1 -0
  107. package/build/lib/schema/keywords.d.ts +24 -0
  108. package/build/lib/schema/keywords.d.ts.map +1 -0
  109. package/build/lib/schema/keywords.js +128 -0
  110. package/build/lib/schema/keywords.js.map +1 -0
  111. package/build/lib/schema/schema.d.ts +260 -0
  112. package/build/lib/schema/schema.d.ts.map +1 -0
  113. package/build/lib/schema/schema.js +640 -0
  114. package/build/lib/schema/schema.js.map +1 -0
  115. package/build/lib/utils.d.ts +276 -0
  116. package/build/lib/utils.d.ts.map +1 -0
  117. package/build/lib/utils.js +372 -192
  118. package/build/lib/utils.js.map +1 -0
  119. package/build/types/cli.d.ts +134 -0
  120. package/build/types/cli.d.ts.map +1 -0
  121. package/build/types/cli.js +3 -0
  122. package/build/types/cli.js.map +1 -0
  123. package/build/types/index.d.ts +15 -0
  124. package/build/types/index.d.ts.map +1 -0
  125. package/build/types/index.js +19 -0
  126. package/build/types/index.js.map +1 -0
  127. package/build/types/manifest/base.d.ts +135 -0
  128. package/build/types/manifest/base.d.ts.map +1 -0
  129. package/build/types/manifest/base.js +3 -0
  130. package/build/types/manifest/base.js.map +1 -0
  131. package/build/types/manifest/index.d.ts +21 -0
  132. package/build/types/manifest/index.d.ts.map +1 -0
  133. package/build/types/manifest/index.js +42 -0
  134. package/build/types/manifest/index.js.map +1 -0
  135. package/build/types/manifest/v3.d.ts +139 -0
  136. package/build/types/manifest/v3.d.ts.map +1 -0
  137. package/build/types/manifest/v3.js +3 -0
  138. package/build/types/manifest/v3.js.map +1 -0
  139. package/build/types/manifest/v4.d.ts +139 -0
  140. package/build/types/manifest/v4.d.ts.map +1 -0
  141. package/build/types/manifest/v4.js +3 -0
  142. package/build/types/manifest/v4.js.map +1 -0
  143. package/driver.d.ts +1 -0
  144. package/driver.js +14 -0
  145. package/index.js +11 -0
  146. package/lib/appium.js +545 -188
  147. package/lib/cli/args.js +275 -407
  148. package/lib/cli/driver-command.js +132 -24
  149. package/lib/cli/extension-command.js +751 -272
  150. package/lib/cli/extension.js +38 -19
  151. package/lib/cli/parser.js +267 -95
  152. package/lib/cli/plugin-command.js +122 -22
  153. package/lib/cli/utils.js +24 -10
  154. package/lib/config-file.js +220 -0
  155. package/lib/config.js +243 -132
  156. package/lib/constants.js +79 -0
  157. package/lib/extension/driver-config.js +247 -0
  158. package/lib/extension/extension-config.js +709 -0
  159. package/lib/extension/index.js +116 -0
  160. package/lib/extension/manifest-migrations.js +136 -0
  161. package/lib/extension/manifest.js +580 -0
  162. package/lib/extension/package-changed.js +64 -0
  163. package/lib/extension/plugin-config.js +112 -0
  164. package/lib/grid-register.js +49 -35
  165. package/lib/logger.js +1 -2
  166. package/lib/logsink.js +59 -36
  167. package/lib/main.js +392 -104
  168. package/lib/schema/arg-spec.js +229 -0
  169. package/lib/schema/cli-args.js +241 -0
  170. package/lib/schema/cli-transformers.js +119 -0
  171. package/lib/schema/index.js +2 -0
  172. package/lib/schema/keywords.js +136 -0
  173. package/lib/schema/schema.js +725 -0
  174. package/lib/utils.js +310 -89
  175. package/package.json +84 -84
  176. package/plugin.d.ts +1 -0
  177. package/plugin.js +13 -0
  178. package/scripts/autoinstall-extensions.js +243 -0
  179. package/support.d.ts +1 -0
  180. package/support.js +13 -0
  181. package/tsconfig.json +25 -0
  182. package/types/cli.ts +193 -0
  183. package/types/index.ts +20 -0
  184. package/types/manifest/README.md +30 -0
  185. package/types/manifest/base.ts +158 -0
  186. package/types/manifest/index.ts +28 -0
  187. package/types/manifest/v3.ts +161 -0
  188. package/types/manifest/v4.ts +161 -0
  189. package/CHANGELOG.md +0 -3669
  190. package/bin/ios-webkit-debug-proxy-launcher.js +0 -71
  191. package/build/lib/cli/argparse-actions.js +0 -104
  192. package/build/lib/cli/npm.js +0 -207
  193. package/build/lib/cli/parser-helpers.js +0 -93
  194. package/build/lib/driver-config.js +0 -77
  195. package/build/lib/drivers.js +0 -99
  196. package/build/lib/extension-config.js +0 -253
  197. package/build/lib/plugin-config.js +0 -59
  198. package/build/lib/plugins.js +0 -16
  199. package/build/postinstall.js +0 -90
  200. package/lib/cli/argparse-actions.js +0 -77
  201. package/lib/cli/npm.js +0 -183
  202. package/lib/cli/parser-helpers.js +0 -91
  203. package/lib/driver-config.js +0 -46
  204. package/lib/drivers.js +0 -84
  205. package/lib/extension-config.js +0 -209
  206. package/lib/plugin-config.js +0 -34
  207. package/lib/plugins.js +0 -11
  208. package/postinstall.js +0 -71
@@ -0,0 +1,276 @@
1
+ /**
2
+ * @template {CliCommand} [Cmd=ServerCommand]
3
+ * @template {CliExtensionSubcommand|void} [SubCmd=void]
4
+ * @param {Args<Cmd, SubCmd>} args
5
+ * @returns {args is Args<ServerCommand>}
6
+ */
7
+ export function isServerCommandArgs<Cmd extends import("appium/types").CliCommand = "server", SubCmd extends void | import("appium/types").CliExtensionSubcommand = void>(args: import("appium/types").Args<Cmd, SubCmd>): args is {
8
+ subcommand?: import("appium/types").CliCommand | undefined;
9
+ configFile?: string | undefined;
10
+ showConfig?: boolean | undefined;
11
+ shell?: boolean | undefined;
12
+ throwInsteadOfExit?: boolean | undefined;
13
+ logHandler?: ((...args: any[]) => void) | undefined;
14
+ appiumHome?: string | undefined;
15
+ showBuildInfo?: boolean | undefined;
16
+ driver?: import("@appium/types").DriverConfig | undefined;
17
+ plugin?: import("@appium/types").PluginConfig | undefined;
18
+ address?: string | undefined;
19
+ nodeconfig?: import("@appium/types").NodeconfigConfig | undefined;
20
+ port?: number | undefined;
21
+ webhook?: string | undefined;
22
+ allowCors?: NonNullable<boolean | undefined> | undefined;
23
+ allowInsecure?: import("@appium/types").AllowInsecureConfig | undefined;
24
+ basePath?: string | undefined;
25
+ callbackAddress?: string | undefined;
26
+ callbackPort?: number | undefined;
27
+ debugLogSpacing?: NonNullable<boolean | undefined> | undefined;
28
+ defaultCapabilities?: import("@appium/types").DefaultCapabilitiesConfig | undefined;
29
+ denyInsecure?: import("@appium/types").DenyInsecureConfig | undefined;
30
+ keepAliveTimeout?: number | undefined;
31
+ localTimezone?: NonNullable<boolean | undefined> | undefined;
32
+ logFilters?: import("@appium/types").LogFiltersConfig | undefined;
33
+ logNoColors?: NonNullable<boolean | undefined> | undefined;
34
+ logTimestamp?: NonNullable<boolean | undefined> | undefined;
35
+ longStacktrace?: NonNullable<boolean | undefined> | undefined;
36
+ noPermsCheck?: NonNullable<boolean | undefined> | undefined;
37
+ sessionOverride?: NonNullable<boolean | undefined> | undefined;
38
+ strictCaps?: NonNullable<boolean | undefined> | undefined;
39
+ traceDir?: string | undefined;
40
+ useDrivers?: import("@appium/types").UseDriversConfig | undefined;
41
+ usePlugins?: import("@appium/types").UsePluginsConfig | undefined;
42
+ logFile?: string | undefined;
43
+ loglevel?: NonNullable<import("@appium/types").LogLevelConfig | undefined> | undefined;
44
+ relaxedSecurityEnabled?: NonNullable<boolean | undefined> | undefined;
45
+ tmpDir?: string | undefined;
46
+ };
47
+ /**
48
+ * @template {CliCommand} [Cmd=ServerCommand]
49
+ * @template {CliExtensionSubcommand|void} [SubCmd=void]
50
+ * @param {Args<Cmd, SubCmd>} args
51
+ * @returns {args is Args<CliExtensionCommand, SubCmd>}
52
+ */
53
+ export function isExtensionCommandArgs<Cmd extends import("appium/types").CliCommand = "server", SubCmd extends void | import("appium/types").CliExtensionSubcommand = void>(args: import("appium/types").Args<Cmd, SubCmd>): args is import("appium/types").ParsedArgs<"driver", SubCmd> | import("appium/types").ParsedArgs<"plugin", SubCmd>;
54
+ /**
55
+ * @template {CliCommand} Cmd
56
+ * @template {CliExtensionSubcommand} SubCmd
57
+ * @param {Args<Cmd, SubCmd>} args
58
+ * @returns {args is Args<DriverCommand, SubCmd>}
59
+ */
60
+ export function isDriverCommandArgs<Cmd extends import("appium/types").CliCommand, SubCmd extends import("appium/types").CliExtensionSubcommand>(args: import("appium/types").Args<Cmd, SubCmd>): args is import("appium/types").ParsedArgs<"driver", SubCmd>;
61
+ /**
62
+ * @template {CliCommand} Cmd
63
+ * @template {CliExtensionSubcommand} SubCmd
64
+ * @param {Args<Cmd, SubCmd>} args
65
+ * @returns {args is Args<PluginCommand, SubCmd>}
66
+ */
67
+ export function isPluginCommandArgs<Cmd extends import("appium/types").CliCommand, SubCmd extends import("appium/types").CliExtensionSubcommand>(args: import("appium/types").Args<Cmd, SubCmd>): args is import("appium/types").ParsedArgs<"plugin", SubCmd>;
68
+ /**
69
+ * Fetches the list of IP addresses of the current host.
70
+ *
71
+ * @param {4|6|null} family Either 4 to include ipv4 addresses only,
72
+ * 6 to include ipv6 addresses only, or null to include all of them
73
+ * @returns {string[]} The list of matched IP addresses
74
+ */
75
+ export function fetchIpAddresses(family?: 4 | 6 | null): string[];
76
+ export const V4_BROADCAST_IP: "0.0.0.0";
77
+ export const V6_BROADCAST_IP: "::";
78
+ export type StringRecord = import('@appium/types').StringRecord;
79
+ export type BaseDriverCapConstraints = import('@appium/types').BaseDriverCapConstraints;
80
+ export type ParsedDriverCaps<C extends import("@appium/types").Constraints = {
81
+ readonly platformName: {
82
+ readonly presence: true;
83
+ readonly isString: true;
84
+ };
85
+ readonly app: {
86
+ readonly isString: true;
87
+ };
88
+ readonly deviceName: {
89
+ readonly isString: true;
90
+ };
91
+ readonly platformVersion: {
92
+ readonly isString: true;
93
+ };
94
+ readonly webSocketUrl: {
95
+ readonly isBoolean: true;
96
+ };
97
+ readonly newCommandTimeout: {
98
+ readonly isNumber: true;
99
+ };
100
+ readonly automationName: {
101
+ readonly isString: true;
102
+ };
103
+ readonly autoLaunch: {
104
+ readonly isBoolean: true;
105
+ };
106
+ readonly udid: {
107
+ readonly isString: true;
108
+ };
109
+ readonly orientation: {
110
+ readonly inclusion: readonly ["LANDSCAPE", "PORTRAIT"];
111
+ };
112
+ readonly autoWebview: {
113
+ readonly isBoolean: true;
114
+ };
115
+ readonly noReset: {
116
+ readonly isBoolean: true;
117
+ };
118
+ readonly fullReset: {
119
+ readonly isBoolean: true;
120
+ };
121
+ readonly language: {
122
+ readonly isString: true;
123
+ };
124
+ readonly locale: {
125
+ readonly isString: true;
126
+ };
127
+ readonly eventTimings: {
128
+ readonly isBoolean: true;
129
+ };
130
+ readonly printPageSourceOnFindFailure: {
131
+ readonly isBoolean: true;
132
+ };
133
+ }, J = any> = {
134
+ desiredCaps: Capabilities<C>;
135
+ protocol: string;
136
+ processedJsonwpCapabilities?: J | undefined;
137
+ processedW3CCapabilities?: import("@appium/types").W3CCapabilities<C> | undefined;
138
+ };
139
+ export type InvalidCaps<C extends import("@appium/types").Constraints = {
140
+ readonly platformName: {
141
+ readonly presence: true;
142
+ readonly isString: true;
143
+ };
144
+ readonly app: {
145
+ readonly isString: true;
146
+ };
147
+ readonly deviceName: {
148
+ readonly isString: true;
149
+ };
150
+ readonly platformVersion: {
151
+ readonly isString: true;
152
+ };
153
+ readonly webSocketUrl: {
154
+ readonly isBoolean: true;
155
+ };
156
+ readonly newCommandTimeout: {
157
+ readonly isNumber: true;
158
+ };
159
+ readonly automationName: {
160
+ readonly isString: true;
161
+ };
162
+ readonly autoLaunch: {
163
+ readonly isBoolean: true;
164
+ };
165
+ readonly udid: {
166
+ readonly isString: true;
167
+ };
168
+ readonly orientation: {
169
+ readonly inclusion: readonly ["LANDSCAPE", "PORTRAIT"];
170
+ };
171
+ readonly autoWebview: {
172
+ readonly isBoolean: true;
173
+ };
174
+ readonly noReset: {
175
+ readonly isBoolean: true;
176
+ };
177
+ readonly fullReset: {
178
+ readonly isBoolean: true;
179
+ };
180
+ readonly language: {
181
+ readonly isString: true;
182
+ };
183
+ readonly locale: {
184
+ readonly isString: true;
185
+ };
186
+ readonly eventTimings: {
187
+ readonly isBoolean: true;
188
+ };
189
+ readonly printPageSourceOnFindFailure: {
190
+ readonly isBoolean: true;
191
+ };
192
+ }, J = any> = {
193
+ error: Error;
194
+ protocol: string;
195
+ desiredCaps?: import("@appium/types").ConstraintsToCaps<C> | undefined;
196
+ processedJsonwpCapabilities?: J | undefined;
197
+ processedW3CCapabilities?: import("@appium/types").W3CCapabilities<C> | undefined;
198
+ };
199
+ export type Capabilities<C extends import("@appium/types").Constraints> = import('@appium/types').Capabilities<C>;
200
+ export type W3CCapabilities<C extends import("@appium/types").Constraints> = import('@appium/types').W3CCapabilities<C>;
201
+ export type NSCapabilities<C extends import("@appium/types").Constraints> = import('@appium/types').NSCapabilities<C>;
202
+ export type ConstraintsToCaps<C extends import("@appium/types").Constraints> = import('@appium/types').ConstraintsToCaps<C>;
203
+ export type StringKeyOf<T> = import('type-fest').StringKeyOf<T>;
204
+ export type Constraints = import('@appium/types').Constraints;
205
+ export type CliCommand = import('appium/types').CliCommand;
206
+ export type CliExtensionSubcommand = import('appium/types').CliExtensionSubcommand;
207
+ export type CliExtensionCommand = import('appium/types').CliExtensionCommand;
208
+ export type ServerCommand = import('appium/types').CliCommandServer;
209
+ export type DriverCommand = import('appium/types').CliCommandDriver;
210
+ export type PluginCommand = import('appium/types').CliCommandPlugin;
211
+ export type Args<Cmd extends import("appium/types").CliCommand = "server", SubCmd extends void | import("appium/types").CliExtensionSubcommand = void> = import('appium/types').Args<Cmd, SubCmd>;
212
+ export type ParsedArgs<Cmd extends import("appium/types").CliCommand = "server", SubCmd extends void | import("appium/types").CliExtensionSubcommand = void> = import('appium/types').ParsedArgs<Cmd, SubCmd>;
213
+ /**
214
+ * Dumps to value to the console using `info` logger.
215
+ *
216
+ * @todo May want to force color to be `false` if {@link isStdoutTTY} is `false`.
217
+ */
218
+ export const inspect: (t1: any) => void;
219
+ /**
220
+ * Takes the caps that were provided in the request and translates them
221
+ * into caps that can be used by the inner drivers.
222
+ *
223
+ * @template {Constraints} C
224
+ * @template [J=any]
225
+ * @param {J} jsonwpCapabilities
226
+ * @param {W3CCapabilities<C>} w3cCapabilities
227
+ * @param {C} constraints
228
+ * @param {NSCapabilities<C>} [defaultCapabilities]
229
+ * @returns {ParsedDriverCaps<C,J>|InvalidCaps<C,J>}
230
+ */
231
+ export function parseCapsForInnerDriver<C extends import("@appium/types").Constraints, J = any>(jsonwpCapabilities: J, w3cCapabilities: import("@appium/types").W3CCapabilities<C>, constraints?: C, defaultCapabilities?: Partial<import("@appium/types").CapsToNSCaps<import("@appium/types").ConstraintsToCaps<C>, "appium">> | undefined): ParsedDriverCaps<C, J> | InvalidCaps<C, J>;
232
+ /**
233
+ * Takes a capabilities objects and prefixes capabilities with `appium:`
234
+ * @template {Constraints} [C={}]
235
+ * @param {Capabilities<C>} caps - Desired capabilities object
236
+ * @returns {NSCapabilities<C>}
237
+ */
238
+ export function insertAppiumPrefixes<C extends import("@appium/types").Constraints = {}>(caps: import("@appium/types").ConstraintsToCaps<C>): Partial<import("@appium/types").CapsToNSCaps<import("@appium/types").ConstraintsToCaps<C>, "appium">>;
239
+ /**
240
+ *
241
+ * @param {string} pkgName
242
+ * @returns {string|undefined}
243
+ */
244
+ export function getPackageVersion(pkgName: string): string | undefined;
245
+ /**
246
+ * Pulls the initial values of Appium settings from the given capabilities argument.
247
+ * Each setting item must satisfy the following format:
248
+ * `setting[setting_name]: setting_value`
249
+ * The capabilities argument itself gets mutated, so it does not contain parsed
250
+ * settings anymore to avoid further parsing issues.
251
+ * Check
252
+ * https://github.com/appium/appium/blob/master/docs/en/advanced-concepts/settings.md
253
+ * for more details on the available settings.
254
+ *
255
+ * @param {?Object} caps - Capabilities dictionary. It is mutated if
256
+ * one or more settings have been pulled from it
257
+ * @return {Object} - An empty dictionary if the given caps contains no
258
+ * setting items or a dictionary containing parsed Appium setting names along with
259
+ * their values.
260
+ */
261
+ export function pullSettings(caps: any | null): any;
262
+ /**
263
+ * @template {Constraints} [C={}]
264
+ * @param {NSCapabilities<C>} caps
265
+ * @returns {Capabilities<C>}
266
+ */
267
+ export function removeAppiumPrefixes<C extends import("@appium/types").Constraints = {}>(caps: Partial<import("@appium/types").CapsToNSCaps<import("@appium/types").ConstraintsToCaps<C>, "appium">>): import("@appium/types").ConstraintsToCaps<C>;
268
+ /**
269
+ * Adjusts NODE_PATH environment variable,
270
+ * so drivers and plugins could load their peer dependencies.
271
+ * Read https://nodejs.org/api/modules.html#loading-from-the-global-folders
272
+ * for more details.
273
+ * @returns {void}
274
+ */
275
+ export function adjustNodePath(): void;
276
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../lib/utils.js"],"names":[],"mappings":"AAySA;;;;;GAKG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEC;AAED;;;;;GAKG;AACH,gVAEC;AAED;;;;;GAKG;AACH,8PAEC;AAED;;;;;GAKG;AACH,8PAEC;AAED;;;;;;GAMG;AACH,0CAJW,CAAC,GAAC,CAAC,GAAC,IAAI,GAEN,MAAM,EAAE,CAepB;AA1VD,wCAAyC;AACzC,mCAAoC;2BAsWvB,OAAO,eAAe,EAAE,YAAY;uCACpC,OAAO,eAAe,EAAE,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAO/C,aAAa,CAAC,CAAC;cACf,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAUN,KAAK;cACL,MAAM;;;;;0EAQP,OAAO,eAAe,EAAE,YAAY,CAAC,CAAC,CAAC;6EAKvC,OAAO,eAAe,EAAE,eAAe,CAAC,CAAC,CAAC;4EAK1C,OAAO,eAAe,EAAE,cAAc,CAAC,CAAC,CAAC;+EAKzC,OAAO,eAAe,EAAE,iBAAiB,CAAC,CAAC,CAAC;6BAK5C,OAAO,WAAW,EAAE,WAAW,CAAC,CAAC,CAAC;0BAIlC,OAAO,eAAe,EAAE,WAAW;yBAInC,OAAO,cAAc,EAAE,UAAU;qCACjC,OAAO,cAAc,EAAE,sBAAsB;kCAC7C,OAAO,cAAc,EAAE,mBAAmB;4BAC1C,OAAO,cAAc,EAAE,gBAAgB;4BACvC,OAAO,cAAc,EAAE,gBAAgB;4BACvC,OAAO,cAAc,EAAE,gBAAgB;yJAMvC,OAAO,cAAc,EAAE,IAAI,CAAC,GAAG,EAAE,MAAM,CAAC;+JAMxC,OAAO,cAAc,EAAE,UAAU,CAAC,GAAG,EAAE,MAAM,CAAC;AAna3D;;;;GAIG;AACH,wCAQE;AAEF;;;;;;;;;;;GAWG;AACH,0XAgHC;AAED;;;;;GAKG;AACH,oPAQC;AAoBD;;;;GAIG;AACH,2CAHW,MAAM,GACJ,MAAM,GAAC,SAAS,CAK5B;AAwDD;;;;;;;;;;;;;;;GAeG;AACH,oDAgBC;AAlHD;;;;GAIG;AACH,oPAEC;AAqBD;;;;;;GAMG;AACH,kCAFa,IAAI,CA+ChB"}