appium-mac2-driver 3.2.2 → 3.2.4

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 (79) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/build/lib/commands/app-management.d.ts +18 -21
  3. package/build/lib/commands/app-management.d.ts.map +1 -1
  4. package/build/lib/commands/app-management.js +14 -25
  5. package/build/lib/commands/app-management.js.map +1 -1
  6. package/build/lib/commands/applescript.d.ts +8 -9
  7. package/build/lib/commands/applescript.d.ts.map +1 -1
  8. package/build/lib/commands/applescript.js +14 -13
  9. package/build/lib/commands/applescript.js.map +1 -1
  10. package/build/lib/commands/execute.d.ts +5 -8
  11. package/build/lib/commands/execute.d.ts.map +1 -1
  12. package/build/lib/commands/execute.js +5 -13
  13. package/build/lib/commands/execute.js.map +1 -1
  14. package/build/lib/commands/find.d.ts +6 -8
  15. package/build/lib/commands/find.d.ts.map +1 -1
  16. package/build/lib/commands/find.js +8 -13
  17. package/build/lib/commands/find.js.map +1 -1
  18. package/build/lib/commands/gestures.d.ts +105 -118
  19. package/build/lib/commands/gestures.d.ts.map +1 -1
  20. package/build/lib/commands/gestures.js +141 -154
  21. package/build/lib/commands/gestures.js.map +1 -1
  22. package/build/lib/commands/navigation.d.ts +4 -6
  23. package/build/lib/commands/navigation.d.ts.map +1 -1
  24. package/build/lib/commands/navigation.js +2 -8
  25. package/build/lib/commands/navigation.js.map +1 -1
  26. package/build/lib/commands/record-screen.d.ts +57 -98
  27. package/build/lib/commands/record-screen.d.ts.map +1 -1
  28. package/build/lib/commands/record-screen.js +81 -84
  29. package/build/lib/commands/record-screen.js.map +1 -1
  30. package/build/lib/commands/screenshots.d.ts +5 -5
  31. package/build/lib/commands/screenshots.d.ts.map +1 -1
  32. package/build/lib/commands/screenshots.js +3 -8
  33. package/build/lib/commands/screenshots.js.map +1 -1
  34. package/build/lib/commands/source.d.ts +4 -5
  35. package/build/lib/commands/source.d.ts.map +1 -1
  36. package/build/lib/commands/source.js +3 -8
  37. package/build/lib/commands/source.js.map +1 -1
  38. package/build/lib/doctor/optional-checks.d.ts +12 -10
  39. package/build/lib/doctor/optional-checks.d.ts.map +1 -1
  40. package/build/lib/doctor/optional-checks.js +9 -9
  41. package/build/lib/doctor/optional-checks.js.map +1 -1
  42. package/build/lib/doctor/required-checks.d.ts +12 -10
  43. package/build/lib/doctor/required-checks.d.ts.map +1 -1
  44. package/build/lib/doctor/required-checks.js +9 -9
  45. package/build/lib/doctor/required-checks.js.map +1 -1
  46. package/build/lib/doctor/utils.d.ts +3 -3
  47. package/build/lib/doctor/utils.d.ts.map +1 -1
  48. package/build/lib/doctor/utils.js +2 -2
  49. package/build/lib/doctor/utils.js.map +1 -1
  50. package/build/lib/logger.d.ts +1 -1
  51. package/build/lib/logger.d.ts.map +1 -1
  52. package/build/lib/logger.js.map +1 -1
  53. package/build/lib/utils.d.ts +11 -11
  54. package/build/lib/utils.d.ts.map +1 -1
  55. package/build/lib/utils.js +6 -7
  56. package/build/lib/utils.js.map +1 -1
  57. package/lib/commands/app-management.ts +88 -0
  58. package/lib/commands/{applescript.js → applescript.ts} +28 -24
  59. package/lib/commands/execute.ts +32 -0
  60. package/lib/commands/find.ts +34 -0
  61. package/lib/commands/{gestures.js → gestures.ts} +333 -238
  62. package/lib/commands/navigation.ts +19 -0
  63. package/lib/commands/{record-screen.js → record-screen.ts} +165 -138
  64. package/lib/commands/screenshots.ts +18 -0
  65. package/lib/commands/{source.js → source.ts} +10 -11
  66. package/lib/doctor/optional-checks.ts +67 -0
  67. package/lib/doctor/required-checks.ts +75 -0
  68. package/lib/doctor/{utils.js → utils.ts} +4 -3
  69. package/lib/{logger.js → logger.ts} +1 -0
  70. package/lib/{utils.js → utils.ts} +8 -10
  71. package/npm-shrinkwrap.json +13 -13
  72. package/package.json +1 -1
  73. package/lib/commands/app-management.js +0 -83
  74. package/lib/commands/execute.js +0 -33
  75. package/lib/commands/find.js +0 -31
  76. package/lib/commands/navigation.js +0 -18
  77. package/lib/commands/screenshots.js +0 -18
  78. package/lib/doctor/optional-checks.js +0 -64
  79. package/lib/doctor/required-checks.js +0 -72
@@ -1,278 +1,265 @@
1
+ import type { Mac2Driver } from '../driver';
2
+ import type { KeyOptions } from '../types';
1
3
  /**
2
4
  * Set value to the given element.
3
5
  * Note:
4
6
  * This is not exposed as 'macos: setValue' because this is the same as
5
7
  * element.send_keys in W3C WebDriver spec.
6
8
  *
7
- * @this {Mac2Driver}
8
- * @param {string} elementId Uuid of the element to set value for.
9
- * @param {any} [value] Value to set. Could also be an array.
10
- * @param {string} [text] Text to set. If both value and text are set then `value` is preferred
11
- * @param {number} [keyModifierFlags] If set then the given key modifiers will
9
+ * @param elementId - Uuid of the element to set value for.
10
+ * @param value - Value to set. Could also be an array.
11
+ * @param text - Text to set. If both value and text are set then `value` is preferred
12
+ * @param keyModifierFlags - If set then the given key modifiers will
12
13
  * be applied while the element value is being set. See
13
14
  * https://developer.apple.com/documentation/xctest/xcuikeymodifierflags
14
15
  * for more details.
15
16
  */
16
- export function macosSetValue(this: import("../driver").Mac2Driver, elementId: string, value?: any, text?: string, keyModifierFlags?: number): Promise<any>;
17
+ export declare function macosSetValue(this: Mac2Driver, elementId: string, value?: any, text?: string, keyModifierFlags?: number): Promise<unknown>;
17
18
  /**
18
19
  * Perform click gesture on an element or by relative/absolute coordinates
19
20
  *
20
- * @this {Mac2Driver}
21
- * @param {string} [elementId] Uuid of the element to click. Either this property
21
+ * @param elementId - Uuid of the element to click. Either this property
22
22
  * or/and x and y must be set. If both are set then x and y are
23
23
  * considered as relative element coordinates. If only x and y
24
24
  * are set then these are parsed as absolute coordinates.
25
- * @param {number} [x] Click X coordinate
26
- * @param {number} [y] Click Y coordinate
27
- * @param {number} [keyModifierFlags] If set then the given key modifiers will be
25
+ * @param x - Click X coordinate
26
+ * @param y - Click Y coordinate
27
+ * @param keyModifierFlags - If set then the given key modifiers will be
28
28
  * applied while click is performed. See
29
29
  * https://developer.apple.com/documentation/xctest/xcuikeymodifierflags
30
30
  * for more details
31
31
  */
32
- export function macosClick(this: import("../driver").Mac2Driver, elementId?: string, x?: number, y?: number, keyModifierFlags?: number): Promise<any>;
32
+ export declare function macosClick(this: Mac2Driver, elementId?: string, x?: number, y?: number, keyModifierFlags?: number): Promise<unknown>;
33
33
  /**
34
34
  * Perform scroll gesture on an element or by relative/absolute coordinates
35
35
  *
36
- * @this {Mac2Driver}
37
- * @param {number} deltaX Horizontal delta as float number
38
- * @param {number} deltaY Vertical delta as float number
39
- * @param {string} [elementId] Uuid of the element to be scrolled. Either this property
36
+ * @param deltaX - Horizontal delta as float number
37
+ * @param deltaY - Vertical delta as float number
38
+ * @param elementId - Uuid of the element to be scrolled. Either this property
40
39
  * or/and x and y must be set. If both are set then x and y are
41
40
  * considered as relative element coordinates. If only x and y are
42
41
  * set then these are parsed as absolute coordinates.
43
- * @param {number} [x] Scroll X coordinate
44
- * @param {number} [y] Scroll Y coordinate
45
- * @param {number} [keyModifierFlags] If set then the given key modifiers will be
42
+ * @param x - Scroll X coordinate
43
+ * @param y - Scroll Y coordinate
44
+ * @param keyModifierFlags - If set then the given key modifiers will be
46
45
  * applied while scroll is performed. See
47
46
  * https://developer.apple.com/documentation/xctest/xcuikeymodifierflags
48
47
  * for more details
49
48
  */
50
- export function macosScroll(this: import("../driver").Mac2Driver, deltaX: number, deltaY: number, elementId?: string, x?: number, y?: number, keyModifierFlags?: number): Promise<any>;
49
+ export declare function macosScroll(this: Mac2Driver, deltaX: number, deltaY: number, elementId?: string, x?: number, y?: number, keyModifierFlags?: number): Promise<unknown>;
51
50
  /**
52
51
  * Perform swipe gesture on an element
53
52
  *
54
- * @this {Mac2Driver}
55
- * @param {'up'|'down'|'left'|'right'} direction Swipe direction
56
- * @param {string} [elementId] Uuid of the element to be swiped. Either this property
53
+ * @param direction - Swipe direction
54
+ * @param elementId - Uuid of the element to be swiped. Either this property
57
55
  * or/and x and y must be set. If both are set then x and y are
58
56
  * considered as relative element coordinates. If only x and y are
59
57
  * set then these are parsed as absolute coordinates.
60
- * @param {number} [x] Swipe X coordinate
61
- * @param {number} [y] Swipe Y coordinate
62
- * @param {number} [velocity] The value is measured in pixels per second and same
58
+ * @param x - Swipe X coordinate
59
+ * @param y - Swipe Y coordinate
60
+ * @param velocity - The value is measured in pixels per second and same
63
61
  * values could behave differently on different devices depending
64
62
  * on their display density. Higher values make swipe gesture faster
65
63
  * (which usually scrolls larger areas if we apply it to a list)
66
64
  * and lower values slow it down. Only values greater than zero have effect.
67
- * @param {number} [keyModifierFlags] If set then the given key modifiers will be
65
+ * @param keyModifierFlags - If set then the given key modifiers will be
68
66
  * applied while scroll is performed. See
69
67
  * https://developer.apple.com/documentation/xctest/xcuikeymodifierflags
70
68
  * for more details
71
69
  */
72
- export function macosSwipe(this: import("../driver").Mac2Driver, direction: "up" | "down" | "left" | "right", elementId?: string, x?: number, y?: number, velocity?: number, keyModifierFlags?: number): Promise<any>;
70
+ export declare function macosSwipe(this: Mac2Driver, direction: 'up' | 'down' | 'left' | 'right', elementId?: string, x?: number, y?: number, velocity?: number, keyModifierFlags?: number): Promise<unknown>;
73
71
  /**
74
72
  * Perform right click gesture on an element or by relative/absolute coordinates
75
73
  *
76
- * @this {Mac2Driver}
77
- * @param {string} [elementId] Uuid of the element to click. Either this property
74
+ * @param elementId - Uuid of the element to click. Either this property
78
75
  * or/and x and y must be set. If both are set then x and y are
79
76
  * considered as relative element coordinates. If only x and y
80
77
  * are set then these are parsed as absolute coordinates.
81
- * @param {number} [x] Click X coordinate
82
- * @param {number} [y] Click Y coordinate
83
- * @param {number} [keyModifierFlags] If set then the given key modifiers will be
78
+ * @param x - Click X coordinate
79
+ * @param y - Click Y coordinate
80
+ * @param keyModifierFlags - If set then the given key modifiers will be
84
81
  * applied while click is performed. See
85
82
  * https://developer.apple.com/documentation/xctest/xcuikeymodifierflags
86
83
  * for more details
87
84
  */
88
- export function macosRightClick(this: import("../driver").Mac2Driver, elementId?: string, x?: number, y?: number, keyModifierFlags?: number): Promise<any>;
85
+ export declare function macosRightClick(this: Mac2Driver, elementId?: string, x?: number, y?: number, keyModifierFlags?: number): Promise<unknown>;
89
86
  /**
90
87
  * Perform hover gesture on an element or by relative/absolute coordinates
91
88
  *
92
- * @this {Mac2Driver}
93
- * @param {string} [elementId] Uuid of the element to hover. Either this property
89
+ * @param elementId - Uuid of the element to hover. Either this property
94
90
  * or/and x and y must be set. If both are set then x and y are
95
91
  * considered as relative element coordinates. If only x and y
96
92
  * are set then these are parsed as absolute coordinates.
97
- * @param {number} [x] Click X coordinate
98
- * @param {number} [y] Click Y coordinate
99
- * @param {number} [keyModifierFlags] If set then the given key modifiers will be
93
+ * @param x - Click X coordinate
94
+ * @param y - Click Y coordinate
95
+ * @param keyModifierFlags - If set then the given key modifiers will be
100
96
  * applied while click is performed. See
101
97
  * https://developer.apple.com/documentation/xctest/xcuikeymodifierflags
102
98
  * for more details
103
99
  */
104
- export function macosHover(this: import("../driver").Mac2Driver, elementId?: string, x?: number, y?: number, keyModifierFlags?: number): Promise<any>;
100
+ export declare function macosHover(this: Mac2Driver, elementId?: string, x?: number, y?: number, keyModifierFlags?: number): Promise<unknown>;
105
101
  /**
106
102
  * Perform double click gesture on an element or by relative/absolute coordinates
107
103
  *
108
- * @this {Mac2Driver}
109
- * @param {string} [elementId] Uuid of the element to hover. Either this property
104
+ * @param elementId - Uuid of the element to hover. Either this property
110
105
  * or/and x and y must be set. If both are set then x and y are
111
106
  * considered as relative element coordinates. If only x and y
112
107
  * are set then these are parsed as absolute coordinates.
113
- * @param {number} [x] Click X coordinate
114
- * @param {number} [y] Click Y coordinate
115
- * @param {number} [keyModifierFlags] If set then the given key modifiers will be
108
+ * @param x - Click X coordinate
109
+ * @param y - Click Y coordinate
110
+ * @param keyModifierFlags - If set then the given key modifiers will be
116
111
  * applied while click is performed. See
117
112
  * https://developer.apple.com/documentation/xctest/xcuikeymodifierflags
118
113
  * for more details
119
114
  */
120
- export function macosDoubleClick(this: import("../driver").Mac2Driver, elementId?: string, x?: number, y?: number, keyModifierFlags?: number): Promise<any>;
115
+ export declare function macosDoubleClick(this: Mac2Driver, elementId?: string, x?: number, y?: number, keyModifierFlags?: number): Promise<unknown>;
121
116
  /**
122
117
  * Perform long click and drag gesture on an element or by absolute coordinates
123
118
  *
124
- * @this {Mac2Driver}
125
- * @param {number} duration Long click duration in float seconds
126
- * @param {string} [sourceElementId] Uuid of the element to start the drag from.
119
+ * @param duration - Long click duration in float seconds
120
+ * @param sourceElementId - Uuid of the element to start the drag from.
127
121
  * Either this property and `destinationElement` must be provided
128
122
  * or `startX`, `startY`, `endX`, `endY` coordinates must be set.
129
- * @param {string} [destinationElementId] Uuid of the element to end the drag on.
123
+ * @param destinationElementId - Uuid of the element to end the drag on.
130
124
  * Either this property and `sourceElement` must be provided or
131
125
  * `startX`, `startY`, `endX`, `endY` coordinatesmust be set.
132
- * @param {number} [startX] Starting X coordinate
133
- * @param {number} [startY] Starting Y coordinate
134
- * @param {number} [endX] Ending X coordinate
135
- * @param {number} [endY] Ending Y coordinate
136
- * @param {number} [keyModifierFlags] If set then the given key modifiers will be
126
+ * @param startX - Starting X coordinate
127
+ * @param startY - Starting Y coordinate
128
+ * @param endX - Ending X coordinate
129
+ * @param endY - Ending Y coordinate
130
+ * @param keyModifierFlags - If set then the given key modifiers will be
137
131
  * applied while drag is performed. See
138
132
  * https://developer.apple.com/documentation/xctest/xcuikeymodifierflags
139
133
  * for more details
140
134
  */
141
- export function macosClickAndDrag(this: import("../driver").Mac2Driver, duration: number, sourceElementId?: string, destinationElementId?: string, startX?: number, startY?: number, endX?: number, endY?: number, keyModifierFlags?: number): Promise<any>;
135
+ export declare function macosClickAndDrag(this: Mac2Driver, duration: number, sourceElementId?: string, destinationElementId?: string, startX?: number, startY?: number, endX?: number, endY?: number, keyModifierFlags?: number): Promise<unknown>;
142
136
  /**
143
137
  * Perform long click, drag and hold gesture on an element or by absolute coordinates
144
138
  *
145
- * @this {Mac2Driver}
146
- * @param {number} duration Long click duration in float seconds
147
- * @param {number} holdDuration Touch hold duration in float seconds
148
- * @param {string} [sourceElementId] Uuid of the element to start the drag from.
139
+ * @param duration - Long click duration in float seconds
140
+ * @param holdDuration - Touch hold duration in float seconds
141
+ * @param sourceElementId - Uuid of the element to start the drag from.
149
142
  * Either this property and `destinationElement` must be provided
150
143
  * or `startX`, `startY`, `endX`, `endY` coordinates must be set.
151
- * @param {string} [destinationElementId] Uuid of the element to end the drag on.
144
+ * @param destinationElementId - Uuid of the element to end the drag on.
152
145
  * Either this property and `sourceElement` must be provided
153
146
  * or `startX`, `startY`, `endX`, `endY` coordinates must be set.
154
- * @param {number} [startX] Starting X coordinate
155
- * @param {number} [startY] Starting Y coordinate
156
- * @param {number} [endX] Ending X coordinate
157
- * @param {number} [endY] Ending Y coordinate
158
- * @param {number} [velocity] Dragging velocity in pixels per second.
147
+ * @param startX - Starting X coordinate
148
+ * @param startY - Starting Y coordinate
149
+ * @param endX - Ending X coordinate
150
+ * @param endY - Ending Y coordinate
151
+ * @param velocity - Dragging velocity in pixels per second.
159
152
  * If not provided then the default velocity is used. See
160
153
  * https://developer.apple.com/documentation/xctest/xcuigesturevelocity
161
154
  * for more details
162
- * @param {number} [keyModifierFlags] If set then the given key modifiers will be
155
+ * @param keyModifierFlags - If set then the given key modifiers will be
163
156
  * applied while drag is performed. See
164
157
  * https://developer.apple.com/documentation/xctest/xcuikeymodifierflags
165
- * for more details */
166
- export function macosClickAndDragAndHold(this: import("../driver").Mac2Driver, duration: number, holdDuration: number, sourceElementId?: string, destinationElementId?: string, startX?: number, startY?: number, endX?: number, endY?: number, velocity?: number, keyModifierFlags?: number): Promise<any>;
158
+ * for more details
159
+ */
160
+ export declare function macosClickAndDragAndHold(this: Mac2Driver, duration: number, holdDuration: number, sourceElementId?: string, destinationElementId?: string, startX?: number, startY?: number, endX?: number, endY?: number, velocity?: number, keyModifierFlags?: number): Promise<unknown>;
167
161
  /**
168
162
  * Send keys to the given element or to the application under test
169
163
  *
170
- * @this {Mac2Driver}
171
- * @param {(import('../types').KeyOptions | string)[]} keys Array of keys to type.
164
+ * @param keys - Array of keys to type.
172
165
  * Each item could either be a string, that represents a key itself (see
173
166
  * https://developer.apple.com/documentation/xctest/xcuielement/1500604-typekey
174
167
  * and https://developer.apple.com/documentation/xctest/xcuikeyboardkey)
175
168
  * or a dictionary, if the key should also be entered with modifiers.
176
- * @param {string} [elementId] Uuid of the element to send the keys to.
169
+ * @param elementId - Uuid of the element to send the keys to.
177
170
  * If unset then keys are sent to the current application
178
171
  * under test.
179
172
  */
180
- export function macosKeys(this: import("../driver").Mac2Driver, keys: (import("../types").KeyOptions | string)[], elementId?: string): Promise<any>;
173
+ export declare function macosKeys(this: Mac2Driver, keys: (KeyOptions | string)[], elementId?: string): Promise<unknown>;
181
174
  /**
182
175
  * Perform tap gesture on a Touch Bar element or by relative/absolute coordinates
183
176
  *
184
- * @this {Mac2Driver}
185
- * @param {string} [elementId] Uuid of the Touch Bar element to tap. Either this property
177
+ * @param elementId - Uuid of the Touch Bar element to tap. Either this property
186
178
  * or/and x and y must be set. If both are set then x and y are considered
187
179
  * as relative element coordinates. If only x and y are set then
188
180
  * these are parsed as absolute Touch Bar coordinates.
189
- * @param {number} [x] Tap X coordinate
190
- * @param {number} [y] Tap Y coordinate
191
- * @param {number} [keyModifierFlags] If set then the given key modifiers will be
181
+ * @param x - Tap X coordinate
182
+ * @param y - Tap Y coordinate
183
+ * @param keyModifierFlags - If set then the given key modifiers will be
192
184
  * applied while click is performed. See
193
185
  * https://developer.apple.com/documentation/xctest/xcuikeymodifierflags
194
186
  * for more details
195
187
  */
196
- export function macosTap(this: import("../driver").Mac2Driver, elementId?: string, x?: number, y?: number, keyModifierFlags?: number): Promise<any>;
188
+ export declare function macosTap(this: Mac2Driver, elementId?: string, x?: number, y?: number, keyModifierFlags?: number): Promise<unknown>;
197
189
  /**
198
190
  * Perform tap gesture on a Touch Bar element or by relative/absolute coordinates
199
191
  *
200
- * @this {Mac2Driver}
201
- * @param {string} [elementId] Uuid of the Touch Bar element to tap. Either this property
202
- * or/and x and y must be set. If both are set then x and y are considered
203
- * as relative element coordinates. If only x and y are set then
204
- * these are parsed as absolute Touch Bar coordinates.
205
- * @param {number} [x] Tap X coordinate
206
- * @param {number} [y] Tap Y coordinate
207
- * @param {number} [keyModifierFlags] If set then the given key modifiers will be
192
+ * @param elementId - Uuid of the Touch Bar element to tap. Either this property
193
+ * or/and x and y must be set. If both are set then x and y are considered
194
+ * as relative element coordinates. If only x and y are set then
195
+ * these are parsed as absolute Touch Bar coordinates.
196
+ * @param x - Tap X coordinate
197
+ * @param y - Tap Y coordinate
198
+ * @param keyModifierFlags - If set then the given key modifiers will be
208
199
  * applied while click is performed. See
209
200
  * https://developer.apple.com/documentation/xctest/xcuikeymodifierflags
210
201
  * for more details
211
202
  */
212
- export function macosDoubleTap(this: import("../driver").Mac2Driver, elementId?: string, x?: number, y?: number, keyModifierFlags?: number): Promise<any>;
203
+ export declare function macosDoubleTap(this: Mac2Driver, elementId?: string, x?: number, y?: number, keyModifierFlags?: number): Promise<unknown>;
213
204
  /**
214
205
  * Perform press gesture on a Touch Bar element or by relative/absolute coordinates
215
206
  *
216
- * @this {Mac2Driver}
217
- * @param {number} duration The number of float seconds to hold the mouse button
218
- * @param {string} [elementId] Uuid of the Touch Bar element to be pressed. Either this property
207
+ * @param duration - The number of float seconds to hold the mouse button
208
+ * @param elementId - Uuid of the Touch Bar element to be pressed. Either this property
219
209
  * or/and x and y must be set. If both are set then x and y are considered
220
210
  * as relative element coordinates. If only x and y are set then these are
221
211
  * parsed as absolute Touch Bar coordinates.
222
- * @param {number} [x] Press X coordinate
223
- * @param {number} [y] Press Y coordinate
224
- * @param {number} [keyModifierFlags] If set then the given key modifiers will be
212
+ * @param x - Press X coordinate
213
+ * @param y - Press Y coordinate
214
+ * @param keyModifierFlags - If set then the given key modifiers will be
225
215
  * applied while click is performed. See
226
216
  * https://developer.apple.com/documentation/xctest/xcuikeymodifierflags
227
217
  * for more details
228
218
  */
229
- export function macosPressAndHold(this: import("../driver").Mac2Driver, duration: number, elementId?: string, x?: number, y?: number, keyModifierFlags?: number): Promise<any>;
219
+ export declare function macosPressAndHold(this: Mac2Driver, duration: number, elementId?: string, x?: number, y?: number, keyModifierFlags?: number): Promise<unknown>;
230
220
  /**
231
221
  * Perform long press and drag gesture on a Touch Bar element or by absolute coordinates
232
222
  *
233
- * @this {Mac2Driver}
234
- * @param {number} duration Long press duration in float seconds
235
- * @param {string} [sourceElementId] Uuid of a Touch Bar element to start the drag from.
223
+ * @param duration - Long press duration in float seconds
224
+ * @param sourceElementId - Uuid of a Touch Bar element to start the drag from.
236
225
  * Either this property and `destinationElement` must be provided or
237
226
  * `startX`, `startY`, `endX`, `endY` coordinates must be set.
238
- * @param {string} [destinationElementId] Uuid of a Touch Bar element to end the drag on.
227
+ * @param destinationElementId - Uuid of a Touch Bar element to end the drag on.
239
228
  * Either this property and `sourceElement` must be provided or
240
229
  * `startX`, `startY`, `endX`, `endY` coordinates must be set.
241
- * @param {number} [startX] Starting X coordinate
242
- * @param {number} [startY] Starting Y coordinate
243
- * @param {number} [endX] Ending X coordinate
244
- * @param {number} [endY] Ending Y coordinate
245
- * @param {number} [keyModifierFlags] If set then the given key modifiers will be
230
+ * @param startX - Starting X coordinate
231
+ * @param startY - Starting Y coordinate
232
+ * @param endX - Ending X coordinate
233
+ * @param endY - Ending Y coordinate
234
+ * @param keyModifierFlags - If set then the given key modifiers will be
246
235
  * applied while drag is performed. See
247
236
  * https://developer.apple.com/documentation/xctest/xcuikeymodifierflags
248
237
  * for more details
249
238
  */
250
- export function macosPressAndDrag(this: import("../driver").Mac2Driver, duration: number, sourceElementId?: string, destinationElementId?: string, startX?: number, startY?: number, endX?: number, endY?: number, keyModifierFlags?: number): Promise<any>;
239
+ export declare function macosPressAndDrag(this: Mac2Driver, duration: number, sourceElementId?: string, destinationElementId?: string, startX?: number, startY?: number, endX?: number, endY?: number, keyModifierFlags?: number): Promise<unknown>;
251
240
  /**
252
241
  * Perform press, drag and hold gesture on a Touch Bar element or by absolute Touch Bar coordinates
253
242
  *
254
- * @this {Mac2Driver}
255
- * @param {number} duration Long press duration in float seconds
256
- * @param {number} holdDuration Touch hold duration in float seconds
257
- * @param {string} [sourceElementId] Uuid of a Touch Bar element to start the drag from.
243
+ * @param duration - Long press duration in float seconds
244
+ * @param holdDuration - Touch hold duration in float seconds
245
+ * @param sourceElementId - Uuid of a Touch Bar element to start the drag from.
258
246
  * Either this property and `destinationElement` must be provided or
259
247
  * `startX`, `startY`, `endX`, `endY` coordinates must be set.
260
- * @param {string} [destinationElementId] Uuid of a Touch Bar element to end the drag on.
248
+ * @param destinationElementId - Uuid of a Touch Bar element to end the drag on.
261
249
  * Either this property and `sourceElement` must be provided or
262
250
  * `startX`, `startY`, `endX`, `endY` coordinates must be set.
263
- * @param {number} [startX] Starting X coordinate
264
- * @param {number} [startY] Starting Y coordinate
265
- * @param {number} [endX] Ending X coordinate
266
- * @param {number} [endY] Ending Y coordinate
267
- * @param {number} [velocity] Dragging velocity in pixels per second.
251
+ * @param startX - Starting X coordinate
252
+ * @param startY - Starting Y coordinate
253
+ * @param endX - Ending X coordinate
254
+ * @param endY - Ending Y coordinate
255
+ * @param velocity - Dragging velocity in pixels per second.
268
256
  * If not provided then the default velocity is used. See
269
257
  * https://developer.apple.com/documentation/xctest/xcuigesturevelocity
270
258
  * for more details
271
- * @param {number} [keyModifierFlags] If set then the given key modifiers will be
259
+ * @param keyModifierFlags - If set then the given key modifiers will be
272
260
  * applied while drag is performed. See
273
261
  * https://developer.apple.com/documentation/xctest/xcuikeymodifierflags
274
262
  * for more details
275
263
  */
276
- export function macosPressAndDragAndHold(this: import("../driver").Mac2Driver, duration: number, holdDuration: number, sourceElementId?: string, destinationElementId?: string, startX?: number, startY?: number, endX?: number, endY?: number, velocity?: number, keyModifierFlags?: number): Promise<any>;
277
- export type Mac2Driver = import("../driver").Mac2Driver;
264
+ export declare function macosPressAndDragAndHold(this: Mac2Driver, duration: number, holdDuration: number, sourceElementId?: string, destinationElementId?: string, startX?: number, startY?: number, endX?: number, endY?: number, velocity?: number, keyModifierFlags?: number): Promise<unknown>;
278
265
  //# sourceMappingURL=gestures.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"gestures.d.ts","sourceRoot":"","sources":["../../../lib/commands/gestures.js"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;GAcG;AACH,+EARW,MAAM,UACN,GAAG,SACH,MAAM,qBACN,MAAM,gBAUhB;AAGD;;;;;;;;;;;;;;GAcG;AACH,6EAXW,MAAM,MAIN,MAAM,MACN,MAAM,qBACN,MAAM,gBAYhB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,0EAbW,MAAM,UACN,MAAM,cACN,MAAM,MAIN,MAAM,MACN,MAAM,qBACN,MAAM,gBAkBhB;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,4EAjBW,IAAI,GAAC,MAAM,GAAC,MAAM,GAAC,OAAO,cAC1B,MAAM,MAIN,MAAM,MACN,MAAM,aACN,MAAM,qBAKN,MAAM,gBAoBhB;AAED;;;;;;;;;;;;;;GAcG;AACH,kFAXW,MAAM,MAIN,MAAM,MACN,MAAM,qBACN,MAAM,gBAYhB;AAED;;;;;;;;;;;;;;GAcG;AACH,6EAXW,MAAM,MAIN,MAAM,MACN,MAAM,qBACN,MAAM,gBAYhB;AAED;;;;;;;;;;;;;;GAcG;AACH,mFAXW,MAAM,MAIN,MAAM,MACN,MAAM,qBACN,MAAM,gBAYhB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,kFAhBW,MAAM,oBACN,MAAM,yBAGN,MAAM,WAGN,MAAM,WACN,MAAM,SACN,MAAM,SACN,MAAM,qBACN,MAAM,gBA4BhB;AAED;;;;;;;;;;;;;;;;;;;;;;;sCAuBsC;AACtC,yFApBW,MAAM,gBACN,MAAM,oBACN,MAAM,yBAGN,MAAM,WAGN,MAAM,WACN,MAAM,SACN,MAAM,SACN,MAAM,aACN,MAAM,qBAIN,MAAM,gBA8BhB;AAED;;;;;;;;;;;;GAYG;AACH,sEATW,CAAC,OAAO,UAAU,EAAE,UAAU,GAAG,MAAM,CAAC,EAAE,cAK1C,MAAM,gBAOhB;AAED;;;;;;;;;;;;;;GAcG;AACH,2EAXW,MAAM,MAIN,MAAM,MACN,MAAM,qBACN,MAAM,gBAYhB;AAED;;;;;;;;;;;;;;GAcG;AACH,iFAXW,MAAM,MAIN,MAAM,MACN,MAAM,qBACN,MAAM,gBAYhB;AAED;;;;;;;;;;;;;;;GAeG;AACH,kFAZW,MAAM,cACN,MAAM,MAIN,MAAM,MACN,MAAM,qBACN,MAAM,gBAYhB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,kFAhBW,MAAM,oBACN,MAAM,yBAGN,MAAM,WAGN,MAAM,WACN,MAAM,SACN,MAAM,SACN,MAAM,qBACN,MAAM,gBA4BhB;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,yFArBW,MAAM,gBACN,MAAM,oBACN,MAAM,yBAGN,MAAM,WAGN,MAAM,WACN,MAAM,SACN,MAAM,SACN,MAAM,aACN,MAAM,qBAIN,MAAM,gBA+BhB;yBAwCY,OAAO,WAAW,EAAE,UAAU"}
1
+ {"version":3,"file":"gestures.d.ts","sourceRoot":"","sources":["../../../lib/commands/gestures.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C;;;;;;;;;;;;;GAaG;AACH,wBAAsB,aAAa,CACjC,IAAI,EAAE,UAAU,EAChB,SAAS,EAAE,MAAM,EACjB,KAAK,CAAC,EAAE,GAAG,EACX,IAAI,CAAC,EAAE,MAAM,EACb,gBAAgB,CAAC,EAAE,MAAM,GACxB,OAAO,CAAC,OAAO,CAAC,CAMlB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAsB,UAAU,C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