cypress 12.11.0 → 12.13.0

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.
@@ -1,1223 +1,1261 @@
1
1
  /// <reference types="cypress" />
2
2
 
3
3
  import * as vue from 'vue';
4
- import { ComponentInternalInstance, FunctionalComponent, ComponentOptions, Component, Plugin as Plugin$1, AppConfig, Directive, VNode, VNodeProps, ComponentPublicInstance, ComputedOptions, MethodOptions, CreateComponentPublicInstance, ComponentCustomProperties, App, ConcreteComponent, DefineComponent, ComponentOptionsMixin, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, Prop, EmitsOptions, ExtractDefaultPropTypes, ComponentOptionsWithoutProps, ComponentOptionsWithArrayProps, ComponentPropsOptions, ComponentOptionsWithObjectProps } from 'vue';
4
+ import { ComponentInternalInstance, FunctionalComponent, ComponentOptions, Component, Directive, Plugin as Plugin$1, AppConfig, VNode, VNodeProps, ComponentPublicInstance, ComputedOptions, MethodOptions, CreateComponentPublicInstance, ComponentCustomProperties, App, ConcreteComponent, Prop, EmitsOptions, ComponentOptionsMixin, ExtractPropTypes, ExtractDefaultPropTypes, DefineComponent, ComponentOptionsWithoutProps, ComponentOptionsWithArrayProps, ComponentPropsOptions, ComponentOptionsWithObjectProps, AllowedComponentProps, ComponentCustomProps } from 'vue';
5
5
 
6
- interface RefSelector {
7
- ref: string;
8
- }
9
- interface NameSelector {
10
- name: string;
11
- length?: never;
12
- }
13
- declare type FindAllComponentsSelector = DefinedComponent | FunctionalComponent | ComponentOptions | NameSelector | string;
14
- declare type FindComponentSelector = RefSelector | FindAllComponentsSelector;
15
- declare type Slot = VNode | string | {
16
- render: Function;
17
- } | Function | Component;
18
- declare type SlotDictionary = {
19
- [key: string]: Slot;
20
- };
21
- declare type RawProps = VNodeProps & {
22
- __v_isVNode?: never;
23
- [Symbol.iterator]?: never;
24
- } & Record<string, any>;
25
- interface MountingOptions$1<Props, Data = {}> {
26
- /**
27
- * Overrides component's default data. Must be a function.
28
- * @see https://next.vue-test-utils.vuejs.org/api/#data
29
- */
30
- data?: () => {} extends Data ? any : Data extends object ? Partial<Data> : any;
31
- /**
32
- * Sets component props when mounted.
33
- * @see https://next.vue-test-utils.vuejs.org/api/#props
34
- */
35
- props?: (RawProps & Props) | ({} extends Props ? null : never);
36
- /**
37
- * @deprecated use `data` instead.
38
- */
39
- propsData?: Props;
40
- /**
41
- * Sets component attributes when mounted.
42
- * @see https://next.vue-test-utils.vuejs.org/api/#attrs
43
- */
44
- attrs?: Record<string, unknown>;
45
- /**
46
- * Provide values for slots on a component.
47
- * @see https://next.vue-test-utils.vuejs.org/api/#slots
48
- */
49
- slots?: SlotDictionary & {
50
- default?: Slot;
51
- };
52
- /**
53
- * Provides global mounting options to the component.
54
- */
55
- global?: GlobalMountOptions$1;
56
- /**
57
- * Specify where to mount the component.
58
- * Can be a valid CSS selector, or an Element connected to the document.
59
- * @see https://next.vue-test-utils.vuejs.org/api/#attachto
60
- */
61
- attachTo?: HTMLElement | string;
62
- /**
63
- * Automatically stub out all the child components.
64
- * @default false
65
- * @see https://next.vue-test-utils.vuejs.org/api/#slots
66
- */
67
- shallow?: boolean;
68
- }
69
- declare type Stub = boolean | Component;
70
- declare type Stubs = Record<string, Stub> | Array<string>;
71
- declare type GlobalMountOptions$1 = {
72
- /**
73
- * Installs plugins on the component.
74
- * @see https://next.vue-test-utils.vuejs.org/api/#global-plugins
75
- */
76
- plugins?: (Plugin$1 | [Plugin$1, ...any[]])[];
77
- /**
78
- * Customizes Vue application global configuration
79
- * @see https://v3.vuejs.org/api/application-config.html#application-config
80
- */
81
- config?: Partial<Omit<AppConfig, 'isNativeTag'>>;
82
- /**
83
- * Applies a mixin for components under testing.
84
- * @see https://next.vue-test-utils.vuejs.org/api/#global-mixins
85
- */
86
- mixins?: ComponentOptions[];
87
- /**
88
- * Mocks a global instance property.
89
- * This is designed to mock variables injected by third party plugins, not
90
- * Vue's native properties such as $root, $children, etc.
91
- * @see https://next.vue-test-utils.vuejs.org/api/#global-mocks
92
- */
93
- mocks?: Record<string, any>;
94
- /**
95
- * Provides data to be received in a setup function via `inject`.
96
- * @see https://next.vue-test-utils.vuejs.org/api/#global-provide
97
- */
98
- provide?: Record<any, any>;
99
- /**
100
- * Registers components globally for components under testing.
101
- * @see https://next.vue-test-utils.vuejs.org/api/#global-components
102
- */
103
- components?: Record<string, Component | object>;
104
- /**
105
- * Registers a directive globally for components under testing
106
- * @see https://next.vue-test-utils.vuejs.org/api/#global-directives
107
- */
108
- directives?: Record<string, Directive>;
109
- /**
110
- * Stubs a component for components under testing.
111
- * @default "{ transition: true, 'transition-group': true }"
112
- * @see https://next.vue-test-utils.vuejs.org/api/#global-stubs
113
- */
114
- stubs?: Stubs;
115
- /**
116
- * Allows rendering the default slot content, even when using
117
- * `shallow` or `shallowMount`.
118
- * @default false
119
- * @see https://next.vue-test-utils.vuejs.org/api/#global-renderstubdefaultslot
120
- */
121
- renderStubDefaultSlot?: boolean;
122
- };
123
- declare type VueNode<T extends Node = Node> = T & {
124
- __vue_app__?: any;
125
- __vueParentComponent?: ComponentInternalInstance;
126
- };
127
- declare type DefinedComponent = new (...args: any[]) => any;
6
+ interface RefSelector {
7
+ ref: string;
8
+ }
9
+ interface NameSelector {
10
+ name: string;
11
+ length?: never;
12
+ }
13
+ type FindAllComponentsSelector = DefinedComponent | FunctionalComponent | ComponentOptions | NameSelector | string;
14
+ type FindComponentSelector = RefSelector | FindAllComponentsSelector;
15
+ type Slot = VNode | string | {
16
+ render: Function;
17
+ } | Function | Component;
18
+ type SlotDictionary = {
19
+ [key: string]: Slot;
20
+ };
21
+ type RawProps = VNodeProps & {
22
+ __v_isVNode?: never;
23
+ [Symbol.iterator]?: never;
24
+ } & Record<string, any>;
25
+ interface MountingOptions$1<Props, Data = {}> {
26
+ /**
27
+ * Overrides component's default data. Must be a function.
28
+ * @see https://test-utils.vuejs.org/api/#data
29
+ */
30
+ data?: () => {} extends Data ? any : Data extends object ? Partial<Data> : any;
31
+ /**
32
+ * Sets component props when mounted.
33
+ * @see https://test-utils.vuejs.org/api/#props
34
+ */
35
+ props?: (RawProps & Props) | ({} extends Props ? null : never);
36
+ /**
37
+ * @deprecated use `props` instead.
38
+ */
39
+ propsData?: Props;
40
+ /**
41
+ * Sets component attributes when mounted.
42
+ * @see https://test-utils.vuejs.org/api/#attrs
43
+ */
44
+ attrs?: Record<string, unknown>;
45
+ /**
46
+ * Provide values for slots on a component.
47
+ * @see https://test-utils.vuejs.org/api/#slots
48
+ */
49
+ slots?: SlotDictionary & {
50
+ default?: Slot;
51
+ };
52
+ /**
53
+ * Provides global mounting options to the component.
54
+ */
55
+ global?: GlobalMountOptions$1;
56
+ /**
57
+ * Specify where to mount the component.
58
+ * Can be a valid CSS selector, or an Element connected to the document.
59
+ * @see https://test-utils.vuejs.org/api/#attachto
60
+ */
61
+ attachTo?: HTMLElement | string;
62
+ /**
63
+ * Automatically stub out all the child components.
64
+ * @default false
65
+ * @see https://test-utils.vuejs.org/api/#slots
66
+ */
67
+ shallow?: boolean;
68
+ }
69
+ type Stub = boolean | Component | Directive;
70
+ type Stubs = Record<string, Stub> | Array<string>;
71
+ type GlobalMountOptions$1 = {
72
+ /**
73
+ * Installs plugins on the component.
74
+ * @see https://test-utils.vuejs.org/api/#global-plugins
75
+ */
76
+ plugins?: (Plugin$1 | [Plugin$1, ...any[]])[];
77
+ /**
78
+ * Customizes Vue application global configuration
79
+ * @see https://v3.vuejs.org/api/application-config.html#application-config
80
+ */
81
+ config?: Partial<Omit<AppConfig, 'isNativeTag'>>;
82
+ /**
83
+ * Applies a mixin for components under testing.
84
+ * @see https://test-utils.vuejs.org/api/#global-mixins
85
+ */
86
+ mixins?: ComponentOptions[];
87
+ /**
88
+ * Mocks a global instance property.
89
+ * This is designed to mock variables injected by third party plugins, not
90
+ * Vue's native properties such as $root, $children, etc.
91
+ * @see https://test-utils.vuejs.org/api/#global-mocks
92
+ */
93
+ mocks?: Record<string, any>;
94
+ /**
95
+ * Provides data to be received in a setup function via `inject`.
96
+ * @see https://test-utils.vuejs.org/api/#global-provide
97
+ */
98
+ provide?: Record<any, any>;
99
+ /**
100
+ * Registers components globally for components under testing.
101
+ * @see https://test-utils.vuejs.org/api/#global-components
102
+ */
103
+ components?: Record<string, Component | object>;
104
+ /**
105
+ * Registers a directive globally for components under testing
106
+ * @see https://test-utils.vuejs.org/api/#global-directives
107
+ */
108
+ directives?: Record<string, Directive>;
109
+ /**
110
+ * Stubs a component for components under testing.
111
+ * @default "{ transition: true, 'transition-group': true }"
112
+ * @see https://test-utils.vuejs.org/api/#global-stubs
113
+ */
114
+ stubs?: Stubs;
115
+ /**
116
+ * Allows rendering the default slot content, even when using
117
+ * `shallow` or `shallowMount`.
118
+ * @default false
119
+ * @see https://test-utils.vuejs.org/api/#global-renderstubdefaultslot
120
+ */
121
+ renderStubDefaultSlot?: boolean;
122
+ };
123
+ type VueNode<T extends Node = Node> = T & {
124
+ __vue_app__?: any;
125
+ __vueParentComponent?: ComponentInternalInstance;
126
+ };
127
+ type DefinedComponent = new (...args: any[]) => any;
128
128
 
129
- declare type DomEventName = keyof typeof domEvents;
130
- declare const systemKeyModifiers: readonly ["ctrl", "shift", "alt", "meta"];
131
- declare const mouseKeyModifiers: readonly ["left", "middle", "right"];
132
- declare const keyCodesByKeyName: {
133
- readonly backspace: 8;
134
- readonly tab: 9;
135
- readonly enter: 13;
136
- readonly esc: 27;
137
- readonly space: 32;
138
- readonly pageup: 33;
139
- readonly pagedown: 34;
140
- readonly end: 35;
141
- readonly home: 36;
142
- readonly left: 37;
143
- readonly up: 38;
144
- readonly right: 39;
145
- readonly down: 40;
146
- readonly insert: 45;
147
- readonly delete: 46;
148
- };
149
- declare type DomEventNameWithModifier = DomEventName | `${DomEventName}.${typeof systemKeyModifiers[number]}` | `click.${typeof mouseKeyModifiers[number]}` | `click.${typeof systemKeyModifiers[number]}.${typeof mouseKeyModifiers[number]}` | `${'keydown' | 'keyup'}.${keyof typeof keyCodesByKeyName}` | `${'keydown' | 'keyup'}.${typeof systemKeyModifiers[number]}.${keyof typeof keyCodesByKeyName}`;
150
- declare const domEvents: {
151
- readonly abort: {
152
- readonly eventInterface: "Event";
153
- readonly bubbles: false;
154
- readonly cancelable: false;
155
- };
156
- readonly afterprint: {
157
- readonly eventInterface: "Event";
158
- readonly bubbles: false;
159
- readonly cancelable: false;
160
- };
161
- readonly animationend: {
162
- readonly eventInterface: "AnimationEvent";
163
- readonly bubbles: true;
164
- readonly cancelable: false;
165
- };
166
- readonly animationiteration: {
167
- readonly eventInterface: "AnimationEvent";
168
- readonly bubbles: true;
169
- readonly cancelable: false;
170
- };
171
- readonly animationstart: {
172
- readonly eventInterface: "AnimationEvent";
173
- readonly bubbles: true;
174
- readonly cancelable: false;
175
- };
176
- readonly appinstalled: {
177
- readonly eventInterface: "Event";
178
- readonly bubbles: false;
179
- readonly cancelable: false;
180
- };
181
- /**
182
- * @deprecated
183
- */
184
- readonly audioprocess: {
185
- readonly eventInterface: "AudioProcessingEvent";
186
- readonly bubbles: false;
187
- readonly cancelable: false;
188
- };
189
- readonly audioend: {
190
- readonly eventInterface: "Event";
191
- readonly bubbles: false;
192
- readonly cancelable: false;
193
- };
194
- readonly audiostart: {
195
- readonly eventInterface: "Event";
196
- readonly bubbles: false;
197
- readonly cancelable: false;
198
- };
199
- readonly beforeprint: {
200
- readonly eventInterface: "Event";
201
- readonly bubbles: false;
202
- readonly cancelable: false;
203
- };
204
- readonly beforeunload: {
205
- readonly eventInterface: "BeforeUnloadEvent";
206
- readonly bubbles: false;
207
- readonly cancelable: true;
208
- };
209
- readonly beginEvent: {
210
- readonly eventInterface: "TimeEvent";
211
- readonly bubbles: false;
212
- readonly cancelable: false;
213
- };
214
- readonly blur: {
215
- readonly eventInterface: "FocusEvent";
216
- readonly bubbles: false;
217
- readonly cancelable: false;
218
- };
219
- readonly boundary: {
220
- readonly eventInterface: "SpeechSynthesisEvent";
221
- readonly bubbles: false;
222
- readonly cancelable: false;
223
- };
224
- readonly cached: {
225
- readonly eventInterface: "Event";
226
- readonly bubbles: false;
227
- readonly cancelable: false;
228
- };
229
- readonly canplay: {
230
- readonly eventInterface: "Event";
231
- readonly bubbles: false;
232
- readonly cancelable: false;
233
- };
234
- readonly canplaythrough: {
235
- readonly eventInterface: "Event";
236
- readonly bubbles: false;
237
- readonly cancelable: false;
238
- };
239
- readonly change: {
240
- readonly eventInterface: "Event";
241
- readonly bubbles: true;
242
- readonly cancelable: false;
243
- };
244
- readonly chargingchange: {
245
- readonly eventInterface: "Event";
246
- readonly bubbles: false;
247
- readonly cancelable: false;
248
- };
249
- readonly chargingtimechange: {
250
- readonly eventInterface: "Event";
251
- readonly bubbles: false;
252
- readonly cancelable: false;
253
- };
254
- readonly checking: {
255
- readonly eventInterface: "Event";
256
- readonly bubbles: false;
257
- readonly cancelable: false;
258
- };
259
- readonly click: {
260
- readonly eventInterface: "MouseEvent";
261
- readonly bubbles: true;
262
- readonly cancelable: true;
263
- };
264
- readonly close: {
265
- readonly eventInterface: "Event";
266
- readonly bubbles: false;
267
- readonly cancelable: false;
268
- };
269
- readonly complete: {
270
- readonly eventInterface: "OfflineAudioCompletionEvent";
271
- readonly bubbles: false;
272
- readonly cancelable: false;
273
- };
274
- readonly compositionend: {
275
- readonly eventInterface: "CompositionEvent";
276
- readonly bubbles: true;
277
- readonly cancelable: true;
278
- };
279
- readonly compositionstart: {
280
- readonly eventInterface: "CompositionEvent";
281
- readonly bubbles: true;
282
- readonly cancelable: true;
283
- };
284
- readonly compositionupdate: {
285
- readonly eventInterface: "CompositionEvent";
286
- readonly bubbles: true;
287
- readonly cancelable: false;
288
- };
289
- readonly contextmenu: {
290
- readonly eventInterface: "MouseEvent";
291
- readonly bubbles: true;
292
- readonly cancelable: true;
293
- };
294
- readonly copy: {
295
- readonly eventInterface: "ClipboardEvent";
296
- readonly bubbles: true;
297
- readonly cancelable: true;
298
- };
299
- readonly cut: {
300
- readonly eventInterface: "ClipboardEvent";
301
- readonly bubbles: true;
302
- readonly cancelable: true;
303
- };
304
- readonly dblclick: {
305
- readonly eventInterface: "MouseEvent";
306
- readonly bubbles: true;
307
- readonly cancelable: true;
308
- };
309
- readonly devicechange: {
310
- readonly eventInterface: "Event";
311
- readonly bubbles: false;
312
- readonly cancelable: false;
313
- };
314
- readonly devicelight: {
315
- readonly eventInterface: "DeviceLightEvent";
316
- readonly bubbles: false;
317
- readonly cancelable: false;
318
- };
319
- readonly devicemotion: {
320
- readonly eventInterface: "DeviceMotionEvent";
321
- readonly bubbles: false;
322
- readonly cancelable: false;
323
- };
324
- readonly deviceorientation: {
325
- readonly eventInterface: "DeviceOrientationEvent";
326
- readonly bubbles: false;
327
- readonly cancelable: false;
328
- };
329
- readonly deviceproximity: {
330
- readonly eventInterface: "DeviceProximityEvent";
331
- readonly bubbles: false;
332
- readonly cancelable: false;
333
- };
334
- readonly dischargingtimechange: {
335
- readonly eventInterface: "Event";
336
- readonly bubbles: false;
337
- readonly cancelable: false;
338
- };
339
- readonly DOMActivate: {
340
- readonly eventInterface: "UIEvent";
341
- readonly bubbles: true;
342
- readonly cancelable: true;
343
- };
344
- readonly DOMAttributeNameChanged: {
345
- readonly eventInterface: "MutationNameEvent";
346
- readonly bubbles: true;
347
- readonly cancelable: true;
348
- };
349
- readonly DOMAttrModified: {
350
- readonly eventInterface: "MutationEvent";
351
- readonly bubbles: true;
352
- readonly cancelable: true;
353
- };
354
- readonly DOMCharacterDataModified: {
355
- readonly eventInterface: "MutationEvent";
356
- readonly bubbles: true;
357
- readonly cancelable: true;
358
- };
359
- readonly DOMContentLoaded: {
360
- readonly eventInterface: "Event";
361
- readonly bubbles: true;
362
- readonly cancelable: true;
363
- };
364
- readonly DOMElementNameChanged: {
365
- readonly eventInterface: "MutationNameEvent";
366
- readonly bubbles: true;
367
- readonly cancelable: true;
368
- };
369
- readonly DOMFocusIn: {
370
- readonly eventInterface: "FocusEvent";
371
- readonly bubbles: true;
372
- readonly cancelable: true;
373
- };
374
- readonly DOMFocusOut: {
375
- readonly eventInterface: "FocusEvent";
376
- readonly bubbles: true;
377
- readonly cancelable: true;
378
- };
379
- readonly DOMNodeInserted: {
380
- readonly eventInterface: "MutationEvent";
381
- readonly bubbles: true;
382
- readonly cancelable: true;
383
- };
384
- readonly DOMNodeInsertedIntoDocument: {
385
- readonly eventInterface: "MutationEvent";
386
- readonly bubbles: true;
387
- readonly cancelable: true;
388
- };
389
- readonly DOMNodeRemoved: {
390
- readonly eventInterface: "MutationEvent";
391
- readonly bubbles: true;
392
- readonly cancelable: true;
393
- };
394
- readonly DOMNodeRemovedFromDocument: {
395
- readonly eventInterface: "MutationEvent";
396
- readonly bubbles: true;
397
- readonly cancelable: true;
398
- };
399
- /**
400
- * @deprecated
401
- */
402
- readonly DOMSubtreeModified: {
403
- readonly eventInterface: "MutationEvent";
404
- readonly bubbles: true;
405
- readonly cancelable: false;
406
- };
407
- readonly downloading: {
408
- readonly eventInterface: "Event";
409
- readonly bubbles: false;
410
- readonly cancelable: false;
411
- };
412
- readonly drag: {
413
- readonly eventInterface: "DragEvent";
414
- readonly bubbles: true;
415
- readonly cancelable: true;
416
- };
417
- readonly dragend: {
418
- readonly eventInterface: "DragEvent";
419
- readonly bubbles: true;
420
- readonly cancelable: false;
421
- };
422
- readonly dragenter: {
423
- readonly eventInterface: "DragEvent";
424
- readonly bubbles: true;
425
- readonly cancelable: true;
426
- };
427
- readonly dragleave: {
428
- readonly eventInterface: "DragEvent";
429
- readonly bubbles: true;
430
- readonly cancelable: false;
431
- };
432
- readonly dragover: {
433
- readonly eventInterface: "DragEvent";
434
- readonly bubbles: true;
435
- readonly cancelable: true;
436
- };
437
- readonly dragstart: {
438
- readonly eventInterface: "DragEvent";
439
- readonly bubbles: true;
440
- readonly cancelable: true;
441
- };
442
- readonly drop: {
443
- readonly eventInterface: "DragEvent";
444
- readonly bubbles: true;
445
- readonly cancelable: true;
446
- };
447
- readonly durationchange: {
448
- readonly eventInterface: "Event";
449
- readonly bubbles: false;
450
- readonly cancelable: false;
451
- };
452
- readonly emptied: {
453
- readonly eventInterface: "Event";
454
- readonly bubbles: false;
455
- readonly cancelable: false;
456
- };
457
- readonly end: {
458
- readonly eventInterface: "Event";
459
- readonly bubbles: false;
460
- readonly cancelable: false;
461
- };
462
- readonly ended: {
463
- readonly eventInterface: "Event";
464
- readonly bubbles: false;
465
- readonly cancelable: false;
466
- };
467
- readonly endEvent: {
468
- readonly eventInterface: "TimeEvent";
469
- readonly bubbles: false;
470
- readonly cancelable: false;
471
- };
472
- readonly error: {
473
- readonly eventInterface: "Event";
474
- readonly bubbles: false;
475
- readonly cancelable: false;
476
- };
477
- readonly focus: {
478
- readonly eventInterface: "FocusEvent";
479
- readonly bubbles: false;
480
- readonly cancelable: false;
481
- };
482
- readonly focusin: {
483
- readonly eventInterface: "FocusEvent";
484
- readonly bubbles: true;
485
- readonly cancelable: false;
486
- };
487
- readonly focusout: {
488
- readonly eventInterface: "FocusEvent";
489
- readonly bubbles: true;
490
- readonly cancelable: false;
491
- };
492
- readonly fullscreenchange: {
493
- readonly eventInterface: "Event";
494
- readonly bubbles: true;
495
- readonly cancelable: false;
496
- };
497
- readonly fullscreenerror: {
498
- readonly eventInterface: "Event";
499
- readonly bubbles: true;
500
- readonly cancelable: false;
501
- };
502
- readonly gamepadconnected: {
503
- readonly eventInterface: "GamepadEvent";
504
- readonly bubbles: false;
505
- readonly cancelable: false;
506
- };
507
- readonly gamepaddisconnected: {
508
- readonly eventInterface: "GamepadEvent";
509
- readonly bubbles: false;
510
- readonly cancelable: false;
511
- };
512
- readonly gotpointercapture: {
513
- readonly eventInterface: "PointerEvent";
514
- readonly bubbles: false;
515
- readonly cancelable: false;
516
- };
517
- readonly hashchange: {
518
- readonly eventInterface: "HashChangeEvent";
519
- readonly bubbles: true;
520
- readonly cancelable: false;
521
- };
522
- readonly lostpointercapture: {
523
- readonly eventInterface: "PointerEvent";
524
- readonly bubbles: false;
525
- readonly cancelable: false;
526
- };
527
- readonly input: {
528
- readonly eventInterface: "Event";
529
- readonly bubbles: true;
530
- readonly cancelable: false;
531
- };
532
- readonly invalid: {
533
- readonly eventInterface: "Event";
534
- readonly cancelable: true;
535
- readonly bubbles: false;
536
- };
537
- readonly keydown: {
538
- readonly eventInterface: "KeyboardEvent";
539
- readonly bubbles: true;
540
- readonly cancelable: true;
541
- };
542
- readonly keypress: {
543
- readonly eventInterface: "KeyboardEvent";
544
- readonly bubbles: true;
545
- readonly cancelable: true;
546
- };
547
- readonly keyup: {
548
- readonly eventInterface: "KeyboardEvent";
549
- readonly bubbles: true;
550
- readonly cancelable: true;
551
- };
552
- readonly languagechange: {
553
- readonly eventInterface: "Event";
554
- readonly bubbles: false;
555
- readonly cancelable: false;
556
- };
557
- readonly levelchange: {
558
- readonly eventInterface: "Event";
559
- readonly bubbles: false;
560
- readonly cancelable: false;
561
- };
562
- readonly load: {
563
- readonly eventInterface: "UIEvent";
564
- readonly bubbles: false;
565
- readonly cancelable: false;
566
- };
567
- readonly loadeddata: {
568
- readonly eventInterface: "Event";
569
- readonly bubbles: false;
570
- readonly cancelable: false;
571
- };
572
- readonly loadedmetadata: {
573
- readonly eventInterface: "Event";
574
- readonly bubbles: false;
575
- readonly cancelable: false;
576
- };
577
- readonly loadend: {
578
- readonly eventInterface: "ProgressEvent";
579
- readonly bubbles: false;
580
- readonly cancelable: false;
581
- };
582
- readonly loadstart: {
583
- readonly eventInterface: "ProgressEvent";
584
- readonly bubbles: false;
585
- readonly cancelable: false;
586
- };
587
- readonly mark: {
588
- readonly eventInterface: "SpeechSynthesisEvent";
589
- readonly bubbles: false;
590
- readonly cancelable: false;
591
- };
592
- readonly message: {
593
- readonly eventInterface: "MessageEvent";
594
- readonly bubbles: false;
595
- readonly cancelable: false;
596
- };
597
- readonly messageerror: {
598
- readonly eventInterface: "MessageEvent";
599
- readonly bubbles: false;
600
- readonly cancelable: false;
601
- };
602
- readonly mousedown: {
603
- readonly eventInterface: "MouseEvent";
604
- readonly bubbles: true;
605
- readonly cancelable: true;
606
- };
607
- readonly mouseenter: {
608
- readonly eventInterface: "MouseEvent";
609
- readonly bubbles: false;
610
- readonly cancelable: false;
611
- };
612
- readonly mouseleave: {
613
- readonly eventInterface: "MouseEvent";
614
- readonly bubbles: false;
615
- readonly cancelable: false;
616
- };
617
- readonly mousemove: {
618
- readonly eventInterface: "MouseEvent";
619
- readonly bubbles: true;
620
- readonly cancelable: true;
621
- };
622
- readonly mouseout: {
623
- readonly eventInterface: "MouseEvent";
624
- readonly bubbles: true;
625
- readonly cancelable: true;
626
- };
627
- readonly mouseover: {
628
- readonly eventInterface: "MouseEvent";
629
- readonly bubbles: true;
630
- readonly cancelable: true;
631
- };
632
- readonly mouseup: {
633
- readonly eventInterface: "MouseEvent";
634
- readonly bubbles: true;
635
- readonly cancelable: true;
636
- };
637
- readonly nomatch: {
638
- readonly eventInterface: "SpeechRecognitionEvent";
639
- readonly bubbles: false;
640
- readonly cancelable: false;
641
- };
642
- readonly notificationclick: {
643
- readonly eventInterface: "NotificationEvent";
644
- readonly bubbles: false;
645
- readonly cancelable: false;
646
- };
647
- readonly noupdate: {
648
- readonly eventInterface: "Event";
649
- readonly bubbles: false;
650
- readonly cancelable: false;
651
- };
652
- readonly obsolete: {
653
- readonly eventInterface: "Event";
654
- readonly bubbles: false;
655
- readonly cancelable: false;
656
- };
657
- readonly offline: {
658
- readonly eventInterface: "Event";
659
- readonly bubbles: false;
660
- readonly cancelable: false;
661
- };
662
- readonly online: {
663
- readonly eventInterface: "Event";
664
- readonly bubbles: false;
665
- readonly cancelable: false;
666
- };
667
- readonly open: {
668
- readonly eventInterface: "Event";
669
- readonly bubbles: false;
670
- readonly cancelable: false;
671
- };
672
- readonly orientationchange: {
673
- readonly eventInterface: "Event";
674
- readonly bubbles: false;
675
- readonly cancelable: false;
676
- };
677
- readonly pagehide: {
678
- readonly eventInterface: "PageTransitionEvent";
679
- readonly bubbles: false;
680
- readonly cancelable: false;
681
- };
682
- readonly pageshow: {
683
- readonly eventInterface: "PageTransitionEvent";
684
- readonly bubbles: false;
685
- readonly cancelable: false;
686
- };
687
- readonly paste: {
688
- readonly eventInterface: "ClipboardEvent";
689
- readonly bubbles: true;
690
- readonly cancelable: true;
691
- };
692
- readonly pause: {
693
- readonly eventInterface: "SpeechSynthesisEvent";
694
- readonly bubbles: false;
695
- readonly cancelable: false;
696
- };
697
- readonly pointercancel: {
698
- readonly eventInterface: "PointerEvent";
699
- readonly bubbles: true;
700
- readonly cancelable: false;
701
- };
702
- readonly pointerdown: {
703
- readonly eventInterface: "PointerEvent";
704
- readonly bubbles: true;
705
- readonly cancelable: true;
706
- };
707
- readonly pointerenter: {
708
- readonly eventInterface: "PointerEvent";
709
- readonly bubbles: false;
710
- readonly cancelable: false;
711
- };
712
- readonly pointerleave: {
713
- readonly eventInterface: "PointerEvent";
714
- readonly bubbles: false;
715
- readonly cancelable: false;
716
- };
717
- readonly pointerlockchange: {
718
- readonly eventInterface: "Event";
719
- readonly bubbles: true;
720
- readonly cancelable: false;
721
- };
722
- readonly pointerlockerror: {
723
- readonly eventInterface: "Event";
724
- readonly bubbles: true;
725
- readonly cancelable: false;
726
- };
727
- readonly pointermove: {
728
- readonly eventInterface: "PointerEvent";
729
- readonly bubbles: true;
730
- readonly cancelable: true;
731
- };
732
- readonly pointerout: {
733
- readonly eventInterface: "PointerEvent";
734
- readonly bubbles: true;
735
- readonly cancelable: true;
736
- };
737
- readonly pointerover: {
738
- readonly eventInterface: "PointerEvent";
739
- readonly bubbles: true;
740
- readonly cancelable: true;
741
- };
742
- readonly pointerup: {
743
- readonly eventInterface: "PointerEvent";
744
- readonly bubbles: true;
745
- readonly cancelable: true;
746
- };
747
- readonly play: {
748
- readonly eventInterface: "Event";
749
- readonly bubbles: false;
750
- readonly cancelable: false;
751
- };
752
- readonly playing: {
753
- readonly eventInterface: "Event";
754
- readonly bubbles: false;
755
- readonly cancelable: false;
756
- };
757
- readonly popstate: {
758
- readonly eventInterface: "PopStateEvent";
759
- readonly bubbles: true;
760
- readonly cancelable: false;
761
- };
762
- readonly progress: {
763
- readonly eventInterface: "ProgressEvent";
764
- readonly bubbles: false;
765
- readonly cancelable: false;
766
- };
767
- readonly push: {
768
- readonly eventInterface: "PushEvent";
769
- readonly bubbles: false;
770
- readonly cancelable: false;
771
- };
772
- readonly pushsubscriptionchange: {
773
- readonly eventInterface: "PushEvent";
774
- readonly bubbles: false;
775
- readonly cancelable: false;
776
- };
777
- readonly ratechange: {
778
- readonly eventInterface: "Event";
779
- readonly bubbles: false;
780
- readonly cancelable: false;
781
- };
782
- readonly readystatechange: {
783
- readonly eventInterface: "Event";
784
- readonly bubbles: false;
785
- readonly cancelable: false;
786
- };
787
- readonly repeatEvent: {
788
- readonly eventInterface: "TimeEvent";
789
- readonly bubbles: false;
790
- readonly cancelable: false;
791
- };
792
- readonly reset: {
793
- readonly eventInterface: "Event";
794
- readonly bubbles: true;
795
- readonly cancelable: true;
796
- };
797
- readonly resize: {
798
- readonly eventInterface: "UIEvent";
799
- readonly bubbles: false;
800
- readonly cancelable: false;
801
- };
802
- readonly resourcetimingbufferfull: {
803
- readonly eventInterface: "Performance";
804
- readonly bubbles: true;
805
- readonly cancelable: true;
806
- };
807
- readonly result: {
808
- readonly eventInterface: "SpeechRecognitionEvent";
809
- readonly bubbles: false;
810
- readonly cancelable: false;
811
- };
812
- readonly resume: {
813
- readonly eventInterface: "SpeechSynthesisEvent";
814
- readonly bubbles: false;
815
- readonly cancelable: false;
816
- };
817
- readonly scroll: {
818
- readonly eventInterface: "UIEvent";
819
- readonly bubbles: false;
820
- readonly cancelable: false;
821
- };
822
- readonly seeked: {
823
- readonly eventInterface: "Event";
824
- readonly bubbles: false;
825
- readonly cancelable: false;
826
- };
827
- readonly seeking: {
828
- readonly eventInterface: "Event";
829
- readonly bubbles: false;
830
- readonly cancelable: false;
831
- };
832
- readonly select: {
833
- readonly eventInterface: "UIEvent";
834
- readonly bubbles: true;
835
- readonly cancelable: false;
836
- };
837
- readonly selectstart: {
838
- readonly eventInterface: "Event";
839
- readonly bubbles: true;
840
- readonly cancelable: true;
841
- };
842
- readonly selectionchange: {
843
- readonly eventInterface: "Event";
844
- readonly bubbles: false;
845
- readonly cancelable: false;
846
- };
847
- readonly show: {
848
- readonly eventInterface: "MouseEvent";
849
- readonly bubbles: false;
850
- readonly cancelable: false;
851
- };
852
- readonly slotchange: {
853
- readonly eventInterface: "Event";
854
- readonly bubbles: true;
855
- readonly cancelable: false;
856
- };
857
- readonly soundend: {
858
- readonly eventInterface: "Event";
859
- readonly bubbles: false;
860
- readonly cancelable: false;
861
- };
862
- readonly soundstart: {
863
- readonly eventInterface: "Event";
864
- readonly bubbles: false;
865
- readonly cancelable: false;
866
- };
867
- readonly speechend: {
868
- readonly eventInterface: "Event";
869
- readonly bubbles: false;
870
- readonly cancelable: false;
871
- };
872
- readonly speechstart: {
873
- readonly eventInterface: "Event";
874
- readonly bubbles: false;
875
- readonly cancelable: false;
876
- };
877
- readonly stalled: {
878
- readonly eventInterface: "Event";
879
- readonly bubbles: false;
880
- readonly cancelable: false;
881
- };
882
- readonly start: {
883
- readonly eventInterface: "SpeechSynthesisEvent";
884
- readonly bubbles: false;
885
- readonly cancelable: false;
886
- };
887
- readonly storage: {
888
- readonly eventInterface: "StorageEvent";
889
- readonly bubbles: false;
890
- readonly cancelable: false;
891
- };
892
- readonly submit: {
893
- readonly eventInterface: "Event";
894
- readonly bubbles: true;
895
- readonly cancelable: true;
896
- };
897
- readonly success: {
898
- readonly eventInterface: "Event";
899
- readonly bubbles: false;
900
- readonly cancelable: false;
901
- };
902
- readonly suspend: {
903
- readonly eventInterface: "Event";
904
- readonly bubbles: false;
905
- readonly cancelable: false;
906
- };
907
- readonly SVGAbort: {
908
- readonly eventInterface: "SVGEvent";
909
- readonly bubbles: true;
910
- readonly cancelable: false;
911
- };
912
- readonly SVGError: {
913
- readonly eventInterface: "SVGEvent";
914
- readonly bubbles: true;
915
- readonly cancelable: false;
916
- };
917
- readonly SVGLoad: {
918
- readonly eventInterface: "SVGEvent";
919
- readonly bubbles: false;
920
- readonly cancelable: false;
921
- };
922
- readonly SVGResize: {
923
- readonly eventInterface: "SVGEvent";
924
- readonly bubbles: true;
925
- readonly cancelable: false;
926
- };
927
- readonly SVGScroll: {
928
- readonly eventInterface: "SVGEvent";
929
- readonly bubbles: true;
930
- readonly cancelable: false;
931
- };
932
- readonly SVGUnload: {
933
- readonly eventInterface: "SVGEvent";
934
- readonly bubbles: false;
935
- readonly cancelable: false;
936
- };
937
- readonly SVGZoom: {
938
- readonly eventInterface: "SVGZoomEvent";
939
- readonly bubbles: true;
940
- readonly cancelable: false;
941
- };
942
- readonly timeout: {
943
- readonly eventInterface: "ProgressEvent";
944
- readonly bubbles: false;
945
- readonly cancelable: false;
946
- };
947
- readonly timeupdate: {
948
- readonly eventInterface: "Event";
949
- readonly bubbles: false;
950
- readonly cancelable: false;
951
- };
952
- readonly touchcancel: {
953
- readonly eventInterface: "TouchEvent";
954
- readonly bubbles: true;
955
- readonly cancelable: false;
956
- };
957
- readonly touchend: {
958
- readonly eventInterface: "TouchEvent";
959
- readonly bubbles: true;
960
- readonly cancelable: true;
961
- };
962
- readonly touchmove: {
963
- readonly eventInterface: "TouchEvent";
964
- readonly bubbles: true;
965
- readonly cancelable: true;
966
- };
967
- readonly touchstart: {
968
- readonly eventInterface: "TouchEvent";
969
- readonly bubbles: true;
970
- readonly cancelable: true;
971
- };
972
- readonly transitionend: {
973
- readonly eventInterface: "TransitionEvent";
974
- readonly bubbles: true;
975
- readonly cancelable: true;
976
- };
977
- readonly unload: {
978
- readonly eventInterface: "UIEvent";
979
- readonly bubbles: false;
980
- readonly cancelable: false;
981
- };
982
- readonly updateready: {
983
- readonly eventInterface: "Event";
984
- readonly bubbles: false;
985
- readonly cancelable: false;
986
- };
987
- readonly userproximity: {
988
- readonly eventInterface: "UserProximityEvent";
989
- readonly bubbles: false;
990
- readonly cancelable: false;
991
- };
992
- readonly voiceschanged: {
993
- readonly eventInterface: "Event";
994
- readonly bubbles: false;
995
- readonly cancelable: false;
996
- };
997
- readonly visibilitychange: {
998
- readonly eventInterface: "Event";
999
- readonly bubbles: true;
1000
- readonly cancelable: false;
1001
- };
1002
- readonly volumechange: {
1003
- readonly eventInterface: "Event";
1004
- readonly bubbles: false;
1005
- readonly cancelable: false;
1006
- };
1007
- readonly waiting: {
1008
- readonly eventInterface: "Event";
1009
- readonly bubbles: false;
1010
- readonly cancelable: false;
1011
- };
1012
- readonly wheel: {
1013
- readonly eventInterface: "WheelEvent";
1014
- readonly bubbles: true;
1015
- readonly cancelable: true;
1016
- };
129
+ type DomEventName = keyof typeof domEvents;
130
+ declare const systemKeyModifiers: readonly ["ctrl", "shift", "alt", "meta"];
131
+ declare const mouseKeyModifiers: readonly ["left", "middle", "right"];
132
+ declare const keyCodesByKeyName: {
133
+ readonly backspace: 8;
134
+ readonly tab: 9;
135
+ readonly enter: 13;
136
+ readonly esc: 27;
137
+ readonly space: 32;
138
+ readonly pageup: 33;
139
+ readonly pagedown: 34;
140
+ readonly end: 35;
141
+ readonly home: 36;
142
+ readonly left: 37;
143
+ readonly up: 38;
144
+ readonly right: 39;
145
+ readonly down: 40;
146
+ readonly insert: 45;
147
+ readonly delete: 46;
148
+ };
149
+ type DomEventNameWithModifier = DomEventName | `${DomEventName}.${(typeof systemKeyModifiers)[number]}` | `click.${(typeof mouseKeyModifiers)[number]}` | `click.${(typeof systemKeyModifiers)[number]}.${(typeof mouseKeyModifiers)[number]}` | `${'keydown' | 'keyup'}.${keyof typeof keyCodesByKeyName}` | `${'keydown' | 'keyup'}.${(typeof systemKeyModifiers)[number]}.${keyof typeof keyCodesByKeyName}`;
150
+ declare const domEvents: {
151
+ readonly abort: {
152
+ readonly eventInterface: "Event";
153
+ readonly bubbles: false;
154
+ readonly cancelable: false;
155
+ };
156
+ readonly afterprint: {
157
+ readonly eventInterface: "Event";
158
+ readonly bubbles: false;
159
+ readonly cancelable: false;
160
+ };
161
+ readonly animationend: {
162
+ readonly eventInterface: "AnimationEvent";
163
+ readonly bubbles: true;
164
+ readonly cancelable: false;
165
+ };
166
+ readonly animationiteration: {
167
+ readonly eventInterface: "AnimationEvent";
168
+ readonly bubbles: true;
169
+ readonly cancelable: false;
170
+ };
171
+ readonly animationstart: {
172
+ readonly eventInterface: "AnimationEvent";
173
+ readonly bubbles: true;
174
+ readonly cancelable: false;
175
+ };
176
+ readonly appinstalled: {
177
+ readonly eventInterface: "Event";
178
+ readonly bubbles: false;
179
+ readonly cancelable: false;
180
+ };
181
+ /**
182
+ * @deprecated
183
+ */
184
+ readonly audioprocess: {
185
+ readonly eventInterface: "AudioProcessingEvent";
186
+ readonly bubbles: false;
187
+ readonly cancelable: false;
188
+ };
189
+ readonly audioend: {
190
+ readonly eventInterface: "Event";
191
+ readonly bubbles: false;
192
+ readonly cancelable: false;
193
+ };
194
+ readonly audiostart: {
195
+ readonly eventInterface: "Event";
196
+ readonly bubbles: false;
197
+ readonly cancelable: false;
198
+ };
199
+ readonly beforeprint: {
200
+ readonly eventInterface: "Event";
201
+ readonly bubbles: false;
202
+ readonly cancelable: false;
203
+ };
204
+ readonly beforeunload: {
205
+ readonly eventInterface: "BeforeUnloadEvent";
206
+ readonly bubbles: false;
207
+ readonly cancelable: true;
208
+ };
209
+ readonly beginEvent: {
210
+ readonly eventInterface: "TimeEvent";
211
+ readonly bubbles: false;
212
+ readonly cancelable: false;
213
+ };
214
+ readonly blur: {
215
+ readonly eventInterface: "FocusEvent";
216
+ readonly bubbles: false;
217
+ readonly cancelable: false;
218
+ };
219
+ readonly boundary: {
220
+ readonly eventInterface: "SpeechSynthesisEvent";
221
+ readonly bubbles: false;
222
+ readonly cancelable: false;
223
+ };
224
+ readonly cached: {
225
+ readonly eventInterface: "Event";
226
+ readonly bubbles: false;
227
+ readonly cancelable: false;
228
+ };
229
+ readonly canplay: {
230
+ readonly eventInterface: "Event";
231
+ readonly bubbles: false;
232
+ readonly cancelable: false;
233
+ };
234
+ readonly canplaythrough: {
235
+ readonly eventInterface: "Event";
236
+ readonly bubbles: false;
237
+ readonly cancelable: false;
238
+ };
239
+ readonly change: {
240
+ readonly eventInterface: "Event";
241
+ readonly bubbles: true;
242
+ readonly cancelable: false;
243
+ };
244
+ readonly chargingchange: {
245
+ readonly eventInterface: "Event";
246
+ readonly bubbles: false;
247
+ readonly cancelable: false;
248
+ };
249
+ readonly chargingtimechange: {
250
+ readonly eventInterface: "Event";
251
+ readonly bubbles: false;
252
+ readonly cancelable: false;
253
+ };
254
+ readonly checking: {
255
+ readonly eventInterface: "Event";
256
+ readonly bubbles: false;
257
+ readonly cancelable: false;
258
+ };
259
+ readonly click: {
260
+ readonly eventInterface: "MouseEvent";
261
+ readonly bubbles: true;
262
+ readonly cancelable: true;
263
+ };
264
+ readonly close: {
265
+ readonly eventInterface: "Event";
266
+ readonly bubbles: false;
267
+ readonly cancelable: false;
268
+ };
269
+ readonly complete: {
270
+ readonly eventInterface: "OfflineAudioCompletionEvent";
271
+ readonly bubbles: false;
272
+ readonly cancelable: false;
273
+ };
274
+ readonly compositionend: {
275
+ readonly eventInterface: "CompositionEvent";
276
+ readonly bubbles: true;
277
+ readonly cancelable: true;
278
+ };
279
+ readonly compositionstart: {
280
+ readonly eventInterface: "CompositionEvent";
281
+ readonly bubbles: true;
282
+ readonly cancelable: true;
283
+ };
284
+ readonly compositionupdate: {
285
+ readonly eventInterface: "CompositionEvent";
286
+ readonly bubbles: true;
287
+ readonly cancelable: false;
288
+ };
289
+ readonly contextmenu: {
290
+ readonly eventInterface: "MouseEvent";
291
+ readonly bubbles: true;
292
+ readonly cancelable: true;
293
+ };
294
+ readonly copy: {
295
+ readonly eventInterface: "ClipboardEvent";
296
+ readonly bubbles: true;
297
+ readonly cancelable: true;
298
+ };
299
+ readonly cut: {
300
+ readonly eventInterface: "ClipboardEvent";
301
+ readonly bubbles: true;
302
+ readonly cancelable: true;
303
+ };
304
+ readonly dblclick: {
305
+ readonly eventInterface: "MouseEvent";
306
+ readonly bubbles: true;
307
+ readonly cancelable: true;
308
+ };
309
+ readonly devicechange: {
310
+ readonly eventInterface: "Event";
311
+ readonly bubbles: false;
312
+ readonly cancelable: false;
313
+ };
314
+ readonly devicelight: {
315
+ readonly eventInterface: "DeviceLightEvent";
316
+ readonly bubbles: false;
317
+ readonly cancelable: false;
318
+ };
319
+ readonly devicemotion: {
320
+ readonly eventInterface: "DeviceMotionEvent";
321
+ readonly bubbles: false;
322
+ readonly cancelable: false;
323
+ };
324
+ readonly deviceorientation: {
325
+ readonly eventInterface: "DeviceOrientationEvent";
326
+ readonly bubbles: false;
327
+ readonly cancelable: false;
328
+ };
329
+ readonly deviceproximity: {
330
+ readonly eventInterface: "DeviceProximityEvent";
331
+ readonly bubbles: false;
332
+ readonly cancelable: false;
333
+ };
334
+ readonly dischargingtimechange: {
335
+ readonly eventInterface: "Event";
336
+ readonly bubbles: false;
337
+ readonly cancelable: false;
338
+ };
339
+ readonly DOMActivate: {
340
+ readonly eventInterface: "UIEvent";
341
+ readonly bubbles: true;
342
+ readonly cancelable: true;
343
+ };
344
+ readonly DOMAttributeNameChanged: {
345
+ readonly eventInterface: "MutationNameEvent";
346
+ readonly bubbles: true;
347
+ readonly cancelable: true;
348
+ };
349
+ readonly DOMAttrModified: {
350
+ readonly eventInterface: "MutationEvent";
351
+ readonly bubbles: true;
352
+ readonly cancelable: true;
353
+ };
354
+ readonly DOMCharacterDataModified: {
355
+ readonly eventInterface: "MutationEvent";
356
+ readonly bubbles: true;
357
+ readonly cancelable: true;
358
+ };
359
+ readonly DOMContentLoaded: {
360
+ readonly eventInterface: "Event";
361
+ readonly bubbles: true;
362
+ readonly cancelable: true;
363
+ };
364
+ readonly DOMElementNameChanged: {
365
+ readonly eventInterface: "MutationNameEvent";
366
+ readonly bubbles: true;
367
+ readonly cancelable: true;
368
+ };
369
+ readonly DOMFocusIn: {
370
+ readonly eventInterface: "FocusEvent";
371
+ readonly bubbles: true;
372
+ readonly cancelable: true;
373
+ };
374
+ readonly DOMFocusOut: {
375
+ readonly eventInterface: "FocusEvent";
376
+ readonly bubbles: true;
377
+ readonly cancelable: true;
378
+ };
379
+ readonly DOMNodeInserted: {
380
+ readonly eventInterface: "MutationEvent";
381
+ readonly bubbles: true;
382
+ readonly cancelable: true;
383
+ };
384
+ readonly DOMNodeInsertedIntoDocument: {
385
+ readonly eventInterface: "MutationEvent";
386
+ readonly bubbles: true;
387
+ readonly cancelable: true;
388
+ };
389
+ readonly DOMNodeRemoved: {
390
+ readonly eventInterface: "MutationEvent";
391
+ readonly bubbles: true;
392
+ readonly cancelable: true;
393
+ };
394
+ readonly DOMNodeRemovedFromDocument: {
395
+ readonly eventInterface: "MutationEvent";
396
+ readonly bubbles: true;
397
+ readonly cancelable: true;
398
+ };
399
+ /**
400
+ * @deprecated
401
+ */
402
+ readonly DOMSubtreeModified: {
403
+ readonly eventInterface: "MutationEvent";
404
+ readonly bubbles: true;
405
+ readonly cancelable: false;
406
+ };
407
+ readonly downloading: {
408
+ readonly eventInterface: "Event";
409
+ readonly bubbles: false;
410
+ readonly cancelable: false;
411
+ };
412
+ readonly drag: {
413
+ readonly eventInterface: "DragEvent";
414
+ readonly bubbles: true;
415
+ readonly cancelable: true;
416
+ };
417
+ readonly dragend: {
418
+ readonly eventInterface: "DragEvent";
419
+ readonly bubbles: true;
420
+ readonly cancelable: false;
421
+ };
422
+ readonly dragenter: {
423
+ readonly eventInterface: "DragEvent";
424
+ readonly bubbles: true;
425
+ readonly cancelable: true;
426
+ };
427
+ readonly dragleave: {
428
+ readonly eventInterface: "DragEvent";
429
+ readonly bubbles: true;
430
+ readonly cancelable: false;
431
+ };
432
+ readonly dragover: {
433
+ readonly eventInterface: "DragEvent";
434
+ readonly bubbles: true;
435
+ readonly cancelable: true;
436
+ };
437
+ readonly dragstart: {
438
+ readonly eventInterface: "DragEvent";
439
+ readonly bubbles: true;
440
+ readonly cancelable: true;
441
+ };
442
+ readonly drop: {
443
+ readonly eventInterface: "DragEvent";
444
+ readonly bubbles: true;
445
+ readonly cancelable: true;
446
+ };
447
+ readonly durationchange: {
448
+ readonly eventInterface: "Event";
449
+ readonly bubbles: false;
450
+ readonly cancelable: false;
451
+ };
452
+ readonly emptied: {
453
+ readonly eventInterface: "Event";
454
+ readonly bubbles: false;
455
+ readonly cancelable: false;
456
+ };
457
+ readonly end: {
458
+ readonly eventInterface: "Event";
459
+ readonly bubbles: false;
460
+ readonly cancelable: false;
461
+ };
462
+ readonly ended: {
463
+ readonly eventInterface: "Event";
464
+ readonly bubbles: false;
465
+ readonly cancelable: false;
466
+ };
467
+ readonly endEvent: {
468
+ readonly eventInterface: "TimeEvent";
469
+ readonly bubbles: false;
470
+ readonly cancelable: false;
471
+ };
472
+ readonly error: {
473
+ readonly eventInterface: "Event";
474
+ readonly bubbles: false;
475
+ readonly cancelable: false;
476
+ };
477
+ readonly focus: {
478
+ readonly eventInterface: "FocusEvent";
479
+ readonly bubbles: false;
480
+ readonly cancelable: false;
481
+ };
482
+ readonly focusin: {
483
+ readonly eventInterface: "FocusEvent";
484
+ readonly bubbles: true;
485
+ readonly cancelable: false;
486
+ };
487
+ readonly focusout: {
488
+ readonly eventInterface: "FocusEvent";
489
+ readonly bubbles: true;
490
+ readonly cancelable: false;
491
+ };
492
+ readonly fullscreenchange: {
493
+ readonly eventInterface: "Event";
494
+ readonly bubbles: true;
495
+ readonly cancelable: false;
496
+ };
497
+ readonly fullscreenerror: {
498
+ readonly eventInterface: "Event";
499
+ readonly bubbles: true;
500
+ readonly cancelable: false;
501
+ };
502
+ readonly gamepadconnected: {
503
+ readonly eventInterface: "GamepadEvent";
504
+ readonly bubbles: false;
505
+ readonly cancelable: false;
506
+ };
507
+ readonly gamepaddisconnected: {
508
+ readonly eventInterface: "GamepadEvent";
509
+ readonly bubbles: false;
510
+ readonly cancelable: false;
511
+ };
512
+ readonly gotpointercapture: {
513
+ readonly eventInterface: "PointerEvent";
514
+ readonly bubbles: false;
515
+ readonly cancelable: false;
516
+ };
517
+ readonly hashchange: {
518
+ readonly eventInterface: "HashChangeEvent";
519
+ readonly bubbles: true;
520
+ readonly cancelable: false;
521
+ };
522
+ readonly lostpointercapture: {
523
+ readonly eventInterface: "PointerEvent";
524
+ readonly bubbles: false;
525
+ readonly cancelable: false;
526
+ };
527
+ readonly input: {
528
+ readonly eventInterface: "Event";
529
+ readonly bubbles: true;
530
+ readonly cancelable: false;
531
+ };
532
+ readonly invalid: {
533
+ readonly eventInterface: "Event";
534
+ readonly cancelable: true;
535
+ readonly bubbles: false;
536
+ };
537
+ readonly keydown: {
538
+ readonly eventInterface: "KeyboardEvent";
539
+ readonly bubbles: true;
540
+ readonly cancelable: true;
541
+ };
542
+ readonly keypress: {
543
+ readonly eventInterface: "KeyboardEvent";
544
+ readonly bubbles: true;
545
+ readonly cancelable: true;
546
+ };
547
+ readonly keyup: {
548
+ readonly eventInterface: "KeyboardEvent";
549
+ readonly bubbles: true;
550
+ readonly cancelable: true;
551
+ };
552
+ readonly languagechange: {
553
+ readonly eventInterface: "Event";
554
+ readonly bubbles: false;
555
+ readonly cancelable: false;
556
+ };
557
+ readonly levelchange: {
558
+ readonly eventInterface: "Event";
559
+ readonly bubbles: false;
560
+ readonly cancelable: false;
561
+ };
562
+ readonly load: {
563
+ readonly eventInterface: "UIEvent";
564
+ readonly bubbles: false;
565
+ readonly cancelable: false;
566
+ };
567
+ readonly loadeddata: {
568
+ readonly eventInterface: "Event";
569
+ readonly bubbles: false;
570
+ readonly cancelable: false;
571
+ };
572
+ readonly loadedmetadata: {
573
+ readonly eventInterface: "Event";
574
+ readonly bubbles: false;
575
+ readonly cancelable: false;
576
+ };
577
+ readonly loadend: {
578
+ readonly eventInterface: "ProgressEvent";
579
+ readonly bubbles: false;
580
+ readonly cancelable: false;
581
+ };
582
+ readonly loadstart: {
583
+ readonly eventInterface: "ProgressEvent";
584
+ readonly bubbles: false;
585
+ readonly cancelable: false;
586
+ };
587
+ readonly mark: {
588
+ readonly eventInterface: "SpeechSynthesisEvent";
589
+ readonly bubbles: false;
590
+ readonly cancelable: false;
591
+ };
592
+ readonly message: {
593
+ readonly eventInterface: "MessageEvent";
594
+ readonly bubbles: false;
595
+ readonly cancelable: false;
596
+ };
597
+ readonly messageerror: {
598
+ readonly eventInterface: "MessageEvent";
599
+ readonly bubbles: false;
600
+ readonly cancelable: false;
601
+ };
602
+ readonly mousedown: {
603
+ readonly eventInterface: "MouseEvent";
604
+ readonly bubbles: true;
605
+ readonly cancelable: true;
606
+ };
607
+ readonly mouseenter: {
608
+ readonly eventInterface: "MouseEvent";
609
+ readonly bubbles: false;
610
+ readonly cancelable: false;
611
+ };
612
+ readonly mouseleave: {
613
+ readonly eventInterface: "MouseEvent";
614
+ readonly bubbles: false;
615
+ readonly cancelable: false;
616
+ };
617
+ readonly mousemove: {
618
+ readonly eventInterface: "MouseEvent";
619
+ readonly bubbles: true;
620
+ readonly cancelable: true;
621
+ };
622
+ readonly mouseout: {
623
+ readonly eventInterface: "MouseEvent";
624
+ readonly bubbles: true;
625
+ readonly cancelable: true;
626
+ };
627
+ readonly mouseover: {
628
+ readonly eventInterface: "MouseEvent";
629
+ readonly bubbles: true;
630
+ readonly cancelable: true;
631
+ };
632
+ readonly mouseup: {
633
+ readonly eventInterface: "MouseEvent";
634
+ readonly bubbles: true;
635
+ readonly cancelable: true;
636
+ };
637
+ readonly nomatch: {
638
+ readonly eventInterface: "SpeechRecognitionEvent";
639
+ readonly bubbles: false;
640
+ readonly cancelable: false;
641
+ };
642
+ readonly notificationclick: {
643
+ readonly eventInterface: "NotificationEvent";
644
+ readonly bubbles: false;
645
+ readonly cancelable: false;
646
+ };
647
+ readonly noupdate: {
648
+ readonly eventInterface: "Event";
649
+ readonly bubbles: false;
650
+ readonly cancelable: false;
651
+ };
652
+ readonly obsolete: {
653
+ readonly eventInterface: "Event";
654
+ readonly bubbles: false;
655
+ readonly cancelable: false;
656
+ };
657
+ readonly offline: {
658
+ readonly eventInterface: "Event";
659
+ readonly bubbles: false;
660
+ readonly cancelable: false;
661
+ };
662
+ readonly online: {
663
+ readonly eventInterface: "Event";
664
+ readonly bubbles: false;
665
+ readonly cancelable: false;
666
+ };
667
+ readonly open: {
668
+ readonly eventInterface: "Event";
669
+ readonly bubbles: false;
670
+ readonly cancelable: false;
671
+ };
672
+ readonly orientationchange: {
673
+ readonly eventInterface: "Event";
674
+ readonly bubbles: false;
675
+ readonly cancelable: false;
676
+ };
677
+ readonly pagehide: {
678
+ readonly eventInterface: "PageTransitionEvent";
679
+ readonly bubbles: false;
680
+ readonly cancelable: false;
681
+ };
682
+ readonly pageshow: {
683
+ readonly eventInterface: "PageTransitionEvent";
684
+ readonly bubbles: false;
685
+ readonly cancelable: false;
686
+ };
687
+ readonly paste: {
688
+ readonly eventInterface: "ClipboardEvent";
689
+ readonly bubbles: true;
690
+ readonly cancelable: true;
691
+ };
692
+ readonly pause: {
693
+ readonly eventInterface: "SpeechSynthesisEvent";
694
+ readonly bubbles: false;
695
+ readonly cancelable: false;
696
+ };
697
+ readonly pointercancel: {
698
+ readonly eventInterface: "PointerEvent";
699
+ readonly bubbles: true;
700
+ readonly cancelable: false;
701
+ };
702
+ readonly pointerdown: {
703
+ readonly eventInterface: "PointerEvent";
704
+ readonly bubbles: true;
705
+ readonly cancelable: true;
706
+ };
707
+ readonly pointerenter: {
708
+ readonly eventInterface: "PointerEvent";
709
+ readonly bubbles: false;
710
+ readonly cancelable: false;
711
+ };
712
+ readonly pointerleave: {
713
+ readonly eventInterface: "PointerEvent";
714
+ readonly bubbles: false;
715
+ readonly cancelable: false;
716
+ };
717
+ readonly pointerlockchange: {
718
+ readonly eventInterface: "Event";
719
+ readonly bubbles: true;
720
+ readonly cancelable: false;
721
+ };
722
+ readonly pointerlockerror: {
723
+ readonly eventInterface: "Event";
724
+ readonly bubbles: true;
725
+ readonly cancelable: false;
726
+ };
727
+ readonly pointermove: {
728
+ readonly eventInterface: "PointerEvent";
729
+ readonly bubbles: true;
730
+ readonly cancelable: true;
731
+ };
732
+ readonly pointerout: {
733
+ readonly eventInterface: "PointerEvent";
734
+ readonly bubbles: true;
735
+ readonly cancelable: true;
736
+ };
737
+ readonly pointerover: {
738
+ readonly eventInterface: "PointerEvent";
739
+ readonly bubbles: true;
740
+ readonly cancelable: true;
741
+ };
742
+ readonly pointerup: {
743
+ readonly eventInterface: "PointerEvent";
744
+ readonly bubbles: true;
745
+ readonly cancelable: true;
746
+ };
747
+ readonly play: {
748
+ readonly eventInterface: "Event";
749
+ readonly bubbles: false;
750
+ readonly cancelable: false;
751
+ };
752
+ readonly playing: {
753
+ readonly eventInterface: "Event";
754
+ readonly bubbles: false;
755
+ readonly cancelable: false;
756
+ };
757
+ readonly popstate: {
758
+ readonly eventInterface: "PopStateEvent";
759
+ readonly bubbles: true;
760
+ readonly cancelable: false;
761
+ };
762
+ readonly progress: {
763
+ readonly eventInterface: "ProgressEvent";
764
+ readonly bubbles: false;
765
+ readonly cancelable: false;
766
+ };
767
+ readonly push: {
768
+ readonly eventInterface: "PushEvent";
769
+ readonly bubbles: false;
770
+ readonly cancelable: false;
771
+ };
772
+ readonly pushsubscriptionchange: {
773
+ readonly eventInterface: "PushEvent";
774
+ readonly bubbles: false;
775
+ readonly cancelable: false;
776
+ };
777
+ readonly ratechange: {
778
+ readonly eventInterface: "Event";
779
+ readonly bubbles: false;
780
+ readonly cancelable: false;
781
+ };
782
+ readonly readystatechange: {
783
+ readonly eventInterface: "Event";
784
+ readonly bubbles: false;
785
+ readonly cancelable: false;
786
+ };
787
+ readonly repeatEvent: {
788
+ readonly eventInterface: "TimeEvent";
789
+ readonly bubbles: false;
790
+ readonly cancelable: false;
791
+ };
792
+ readonly reset: {
793
+ readonly eventInterface: "Event";
794
+ readonly bubbles: true;
795
+ readonly cancelable: true;
796
+ };
797
+ readonly resize: {
798
+ readonly eventInterface: "UIEvent";
799
+ readonly bubbles: false;
800
+ readonly cancelable: false;
801
+ };
802
+ readonly resourcetimingbufferfull: {
803
+ readonly eventInterface: "Performance";
804
+ readonly bubbles: true;
805
+ readonly cancelable: true;
806
+ };
807
+ readonly result: {
808
+ readonly eventInterface: "SpeechRecognitionEvent";
809
+ readonly bubbles: false;
810
+ readonly cancelable: false;
811
+ };
812
+ readonly resume: {
813
+ readonly eventInterface: "SpeechSynthesisEvent";
814
+ readonly bubbles: false;
815
+ readonly cancelable: false;
816
+ };
817
+ readonly scroll: {
818
+ readonly eventInterface: "UIEvent";
819
+ readonly bubbles: false;
820
+ readonly cancelable: false;
821
+ };
822
+ readonly seeked: {
823
+ readonly eventInterface: "Event";
824
+ readonly bubbles: false;
825
+ readonly cancelable: false;
826
+ };
827
+ readonly seeking: {
828
+ readonly eventInterface: "Event";
829
+ readonly bubbles: false;
830
+ readonly cancelable: false;
831
+ };
832
+ readonly select: {
833
+ readonly eventInterface: "UIEvent";
834
+ readonly bubbles: true;
835
+ readonly cancelable: false;
836
+ };
837
+ readonly selectstart: {
838
+ readonly eventInterface: "Event";
839
+ readonly bubbles: true;
840
+ readonly cancelable: true;
841
+ };
842
+ readonly selectionchange: {
843
+ readonly eventInterface: "Event";
844
+ readonly bubbles: false;
845
+ readonly cancelable: false;
846
+ };
847
+ readonly show: {
848
+ readonly eventInterface: "MouseEvent";
849
+ readonly bubbles: false;
850
+ readonly cancelable: false;
851
+ };
852
+ readonly slotchange: {
853
+ readonly eventInterface: "Event";
854
+ readonly bubbles: true;
855
+ readonly cancelable: false;
856
+ };
857
+ readonly soundend: {
858
+ readonly eventInterface: "Event";
859
+ readonly bubbles: false;
860
+ readonly cancelable: false;
861
+ };
862
+ readonly soundstart: {
863
+ readonly eventInterface: "Event";
864
+ readonly bubbles: false;
865
+ readonly cancelable: false;
866
+ };
867
+ readonly speechend: {
868
+ readonly eventInterface: "Event";
869
+ readonly bubbles: false;
870
+ readonly cancelable: false;
871
+ };
872
+ readonly speechstart: {
873
+ readonly eventInterface: "Event";
874
+ readonly bubbles: false;
875
+ readonly cancelable: false;
876
+ };
877
+ readonly stalled: {
878
+ readonly eventInterface: "Event";
879
+ readonly bubbles: false;
880
+ readonly cancelable: false;
881
+ };
882
+ readonly start: {
883
+ readonly eventInterface: "SpeechSynthesisEvent";
884
+ readonly bubbles: false;
885
+ readonly cancelable: false;
886
+ };
887
+ readonly storage: {
888
+ readonly eventInterface: "StorageEvent";
889
+ readonly bubbles: false;
890
+ readonly cancelable: false;
891
+ };
892
+ readonly submit: {
893
+ readonly eventInterface: "Event";
894
+ readonly bubbles: true;
895
+ readonly cancelable: true;
896
+ };
897
+ readonly success: {
898
+ readonly eventInterface: "Event";
899
+ readonly bubbles: false;
900
+ readonly cancelable: false;
901
+ };
902
+ readonly suspend: {
903
+ readonly eventInterface: "Event";
904
+ readonly bubbles: false;
905
+ readonly cancelable: false;
906
+ };
907
+ readonly SVGAbort: {
908
+ readonly eventInterface: "SVGEvent";
909
+ readonly bubbles: true;
910
+ readonly cancelable: false;
911
+ };
912
+ readonly SVGError: {
913
+ readonly eventInterface: "SVGEvent";
914
+ readonly bubbles: true;
915
+ readonly cancelable: false;
916
+ };
917
+ readonly SVGLoad: {
918
+ readonly eventInterface: "SVGEvent";
919
+ readonly bubbles: false;
920
+ readonly cancelable: false;
921
+ };
922
+ readonly SVGResize: {
923
+ readonly eventInterface: "SVGEvent";
924
+ readonly bubbles: true;
925
+ readonly cancelable: false;
926
+ };
927
+ readonly SVGScroll: {
928
+ readonly eventInterface: "SVGEvent";
929
+ readonly bubbles: true;
930
+ readonly cancelable: false;
931
+ };
932
+ readonly SVGUnload: {
933
+ readonly eventInterface: "SVGEvent";
934
+ readonly bubbles: false;
935
+ readonly cancelable: false;
936
+ };
937
+ readonly SVGZoom: {
938
+ readonly eventInterface: "SVGZoomEvent";
939
+ readonly bubbles: true;
940
+ readonly cancelable: false;
941
+ };
942
+ readonly timeout: {
943
+ readonly eventInterface: "ProgressEvent";
944
+ readonly bubbles: false;
945
+ readonly cancelable: false;
946
+ };
947
+ readonly timeupdate: {
948
+ readonly eventInterface: "Event";
949
+ readonly bubbles: false;
950
+ readonly cancelable: false;
951
+ };
952
+ readonly touchcancel: {
953
+ readonly eventInterface: "TouchEvent";
954
+ readonly bubbles: true;
955
+ readonly cancelable: false;
956
+ };
957
+ readonly touchend: {
958
+ readonly eventInterface: "TouchEvent";
959
+ readonly bubbles: true;
960
+ readonly cancelable: true;
961
+ };
962
+ readonly touchmove: {
963
+ readonly eventInterface: "TouchEvent";
964
+ readonly bubbles: true;
965
+ readonly cancelable: true;
966
+ };
967
+ readonly touchstart: {
968
+ readonly eventInterface: "TouchEvent";
969
+ readonly bubbles: true;
970
+ readonly cancelable: true;
971
+ };
972
+ readonly transitionend: {
973
+ readonly eventInterface: "TransitionEvent";
974
+ readonly bubbles: true;
975
+ readonly cancelable: true;
976
+ };
977
+ readonly unload: {
978
+ readonly eventInterface: "UIEvent";
979
+ readonly bubbles: false;
980
+ readonly cancelable: false;
981
+ };
982
+ readonly updateready: {
983
+ readonly eventInterface: "Event";
984
+ readonly bubbles: false;
985
+ readonly cancelable: false;
986
+ };
987
+ readonly userproximity: {
988
+ readonly eventInterface: "UserProximityEvent";
989
+ readonly bubbles: false;
990
+ readonly cancelable: false;
991
+ };
992
+ readonly voiceschanged: {
993
+ readonly eventInterface: "Event";
994
+ readonly bubbles: false;
995
+ readonly cancelable: false;
996
+ };
997
+ readonly visibilitychange: {
998
+ readonly eventInterface: "Event";
999
+ readonly bubbles: true;
1000
+ readonly cancelable: false;
1001
+ };
1002
+ readonly volumechange: {
1003
+ readonly eventInterface: "Event";
1004
+ readonly bubbles: false;
1005
+ readonly cancelable: false;
1006
+ };
1007
+ readonly waiting: {
1008
+ readonly eventInterface: "Event";
1009
+ readonly bubbles: false;
1010
+ readonly cancelable: false;
1011
+ };
1012
+ readonly wheel: {
1013
+ readonly eventInterface: "WheelEvent";
1014
+ readonly bubbles: true;
1015
+ readonly cancelable: true;
1016
+ };
1017
1017
  };
1018
1018
 
1019
- interface TriggerOptions {
1020
- code?: String;
1021
- key?: String;
1022
- keyCode?: Number;
1023
- [custom: string]: any;
1019
+ interface TriggerOptions {
1020
+ code?: String;
1021
+ key?: String;
1022
+ keyCode?: Number;
1023
+ [custom: string]: any;
1024
1024
  }
1025
1025
 
1026
- declare class DOMWrapper<NodeType extends Node> extends BaseWrapper<NodeType> {
1027
- constructor(element: NodeType);
1028
- getRootNodes(): VueNode<NodeType>[];
1029
- getCurrentComponent(): vue.ComponentInternalInstance | undefined;
1030
- find<K extends keyof HTMLElementTagNameMap>(selector: K): DOMWrapper<HTMLElementTagNameMap[K]>;
1031
- find<K extends keyof SVGElementTagNameMap>(selector: K): DOMWrapper<SVGElementTagNameMap[K]>;
1032
- find<T extends Element = Element>(selector: string): DOMWrapper<T>;
1033
- find<T extends Node = Node>(selector: string | RefSelector): DOMWrapper<T>;
1034
- findAll<K extends keyof HTMLElementTagNameMap>(selector: K): DOMWrapper<HTMLElementTagNameMap[K]>[];
1035
- findAll<K extends keyof SVGElementTagNameMap>(selector: K): DOMWrapper<SVGElementTagNameMap[K]>[];
1036
- findAll<T extends Element>(selector: string): DOMWrapper<T>[];
1037
- findAllComponents(selector: any): any;
1038
- private setChecked;
1039
- setValue(value?: any): Promise<void>;
1040
- private setSelected;
1026
+ declare class DOMWrapper<NodeType extends Node> extends BaseWrapper<NodeType> {
1027
+ constructor(element: NodeType | null | undefined);
1028
+ getRootNodes(): VueNode<NodeType>[];
1029
+ getCurrentComponent(): vue.ComponentInternalInstance | undefined;
1030
+ find<K extends keyof HTMLElementTagNameMap>(selector: K): DOMWrapper<HTMLElementTagNameMap[K]>;
1031
+ find<K extends keyof SVGElementTagNameMap>(selector: K): DOMWrapper<SVGElementTagNameMap[K]>;
1032
+ find<T extends Element = Element>(selector: string): DOMWrapper<T>;
1033
+ find<T extends Node = Node>(selector: string | RefSelector): DOMWrapper<T>;
1034
+ findAll<K extends keyof HTMLElementTagNameMap>(selector: K): DOMWrapper<HTMLElementTagNameMap[K]>[];
1035
+ findAll<K extends keyof SVGElementTagNameMap>(selector: K): DOMWrapper<SVGElementTagNameMap[K]>[];
1036
+ findAll<T extends Element>(selector: string): DOMWrapper<T>[];
1037
+ findAllComponents(selector: any): any;
1038
+ private setChecked;
1039
+ setValue(value?: any): Promise<void>;
1040
+ private setSelected;
1041
1041
  }
1042
1042
 
1043
- interface WrapperLike {
1044
- readonly element: Node;
1045
- find<K extends keyof HTMLElementTagNameMap>(selector: K): DOMWrapper<HTMLElementTagNameMap[K]>;
1046
- find<K extends keyof SVGElementTagNameMap>(selector: K): DOMWrapper<SVGElementTagNameMap[K]>;
1047
- find<T extends Element = Element>(selector: string): DOMWrapper<T>;
1048
- find<T extends Node = Node>(selector: string | RefSelector): DOMWrapper<T>;
1049
- findAll<K extends keyof HTMLElementTagNameMap>(selector: K): DOMWrapper<HTMLElementTagNameMap[K]>[];
1050
- findAll<K extends keyof SVGElementTagNameMap>(selector: K): DOMWrapper<SVGElementTagNameMap[K]>[];
1051
- findAll<T extends Element>(selector: string): DOMWrapper<T>[];
1052
- findAll(selector: string): DOMWrapper<Element>[];
1053
- findComponent<T extends never>(selector: string): WrapperLike;
1054
- findComponent<T extends DefinedComponent>(selector: T | Exclude<FindComponentSelector, FunctionalComponent>): VueWrapper<InstanceType<T>>;
1055
- findComponent<T extends FunctionalComponent>(selector: T | string): DOMWrapper<Element>;
1056
- findComponent<T extends never>(selector: NameSelector | RefSelector): VueWrapper;
1057
- findComponent<T extends ComponentPublicInstance>(selector: T | FindComponentSelector): VueWrapper<T>;
1058
- findComponent(selector: FindComponentSelector): WrapperLike;
1059
- findAllComponents<T extends never>(selector: string): WrapperLike[];
1060
- findAllComponents<T extends DefinedComponent>(selector: T | Exclude<FindAllComponentsSelector, FunctionalComponent>): VueWrapper<InstanceType<T>>[];
1061
- findAllComponents<T extends FunctionalComponent>(selector: string): DOMWrapper<Element>[];
1062
- findAllComponents<T extends FunctionalComponent>(selector: T): DOMWrapper<Node>[];
1063
- findAllComponents<T extends never>(selector: NameSelector): VueWrapper[];
1064
- findAllComponents<T extends ComponentPublicInstance>(selector: T | FindAllComponentsSelector): VueWrapper<T>[];
1065
- findAllComponents(selector: FindAllComponentsSelector): WrapperLike[];
1066
- get<K extends keyof HTMLElementTagNameMap>(selector: K): Omit<DOMWrapper<HTMLElementTagNameMap[K]>, 'exists'>;
1067
- get<K extends keyof SVGElementTagNameMap>(selector: K): Omit<DOMWrapper<SVGElementTagNameMap[K]>, 'exists'>;
1068
- get<T extends Element = Element>(selector: string): Omit<DOMWrapper<T>, 'exists'>;
1069
- get<T extends Node = Node>(selector: string | RefSelector): Omit<DOMWrapper<T>, 'exists'>;
1070
- getComponent<T extends never>(selector: string): Omit<WrapperLike, 'exists'>;
1071
- getComponent<T extends DefinedComponent>(selector: T | Exclude<FindComponentSelector, FunctionalComponent>): Omit<VueWrapper<InstanceType<T>>, 'exists'>;
1072
- getComponent<T extends FunctionalComponent>(selector: T | string): Omit<DOMWrapper<Element>, 'exists'>;
1073
- getComponent<T extends ComponentPublicInstance>(selector: T | FindComponentSelector): Omit<VueWrapper<T>, 'exists'>;
1074
- getComponent<T extends never>(selector: FindComponentSelector): Omit<WrapperLike, 'exists'>;
1075
- html(): string;
1076
- classes(): string[];
1077
- classes(className: string): boolean;
1078
- classes(className?: string): string[] | boolean;
1079
- attributes(): {
1080
- [key: string]: string;
1081
- };
1082
- attributes(key: string): string | undefined;
1083
- attributes(key?: string): {
1084
- [key: string]: string;
1085
- } | string | undefined;
1086
- text(): string;
1087
- exists(): boolean;
1088
- setValue(value: any): Promise<void>;
1089
- isVisible(): boolean;
1090
- trigger(eventString: DomEventNameWithModifier, options?: TriggerOptions): Promise<void>;
1091
- trigger(eventString: string, options?: TriggerOptions): Promise<void>;
1043
+ interface WrapperLike {
1044
+ readonly element: Node;
1045
+ find<K extends keyof HTMLElementTagNameMap>(selector: K): DOMWrapper<HTMLElementTagNameMap[K]>;
1046
+ find<K extends keyof SVGElementTagNameMap>(selector: K): DOMWrapper<SVGElementTagNameMap[K]>;
1047
+ find<T extends Element = Element>(selector: string): DOMWrapper<T>;
1048
+ find<T extends Node = Node>(selector: string | RefSelector): DOMWrapper<T>;
1049
+ findAll<K extends keyof HTMLElementTagNameMap>(selector: K): DOMWrapper<HTMLElementTagNameMap[K]>[];
1050
+ findAll<K extends keyof SVGElementTagNameMap>(selector: K): DOMWrapper<SVGElementTagNameMap[K]>[];
1051
+ findAll<T extends Element>(selector: string): DOMWrapper<T>[];
1052
+ findAll(selector: string): DOMWrapper<Element>[];
1053
+ findComponent<T extends never>(selector: string): WrapperLike;
1054
+ findComponent<T extends DefinedComponent>(selector: T | Exclude<FindComponentSelector, FunctionalComponent>): VueWrapper<InstanceType<T>>;
1055
+ findComponent<T extends FunctionalComponent>(selector: T | string): DOMWrapper<Element>;
1056
+ findComponent<T extends never>(selector: NameSelector | RefSelector): VueWrapper;
1057
+ findComponent<T extends ComponentPublicInstance>(selector: T | FindComponentSelector): VueWrapper<T>;
1058
+ findComponent(selector: FindComponentSelector): WrapperLike;
1059
+ findAllComponents<T extends never>(selector: string): WrapperLike[];
1060
+ findAllComponents<T extends DefinedComponent>(selector: T | Exclude<FindAllComponentsSelector, FunctionalComponent>): VueWrapper<InstanceType<T>>[];
1061
+ findAllComponents<T extends FunctionalComponent>(selector: string): DOMWrapper<Element>[];
1062
+ findAllComponents<T extends FunctionalComponent>(selector: T): DOMWrapper<Node>[];
1063
+ findAllComponents<T extends never>(selector: NameSelector): VueWrapper[];
1064
+ findAllComponents<T extends ComponentPublicInstance>(selector: T | FindAllComponentsSelector): VueWrapper<T>[];
1065
+ findAllComponents(selector: FindAllComponentsSelector): WrapperLike[];
1066
+ get<K extends keyof HTMLElementTagNameMap>(selector: K): Omit<DOMWrapper<HTMLElementTagNameMap[K]>, 'exists'>;
1067
+ get<K extends keyof SVGElementTagNameMap>(selector: K): Omit<DOMWrapper<SVGElementTagNameMap[K]>, 'exists'>;
1068
+ get<T extends Element = Element>(selector: string): Omit<DOMWrapper<T>, 'exists'>;
1069
+ get<T extends Node = Node>(selector: string | RefSelector): Omit<DOMWrapper<T>, 'exists'>;
1070
+ getComponent<T extends never>(selector: string): Omit<WrapperLike, 'exists'>;
1071
+ getComponent<T extends DefinedComponent>(selector: T | Exclude<FindComponentSelector, FunctionalComponent>): Omit<VueWrapper<InstanceType<T>>, 'exists'>;
1072
+ getComponent<T extends FunctionalComponent>(selector: T | string): Omit<DOMWrapper<Element>, 'exists'>;
1073
+ getComponent<T extends ComponentPublicInstance>(selector: T | FindComponentSelector): Omit<VueWrapper<T>, 'exists'>;
1074
+ getComponent<T extends never>(selector: FindComponentSelector): Omit<WrapperLike, 'exists'>;
1075
+ html(): string;
1076
+ classes(): string[];
1077
+ classes(className: string): boolean;
1078
+ classes(className?: string): string[] | boolean;
1079
+ attributes(): {
1080
+ [key: string]: string;
1081
+ };
1082
+ attributes(key: string): string | undefined;
1083
+ attributes(key?: string): {
1084
+ [key: string]: string;
1085
+ } | string | undefined;
1086
+ text(): string;
1087
+ exists(): boolean;
1088
+ setValue(value: any): Promise<void>;
1089
+ isVisible(): boolean;
1090
+ trigger(eventString: DomEventNameWithModifier, options?: TriggerOptions): Promise<void>;
1091
+ trigger(eventString: string, options?: TriggerOptions): Promise<void>;
1092
1092
  }
1093
1093
 
1094
- declare abstract class BaseWrapper<ElementType extends Node> implements WrapperLike {
1095
- protected readonly wrapperElement: VueNode<ElementType>;
1096
- protected abstract getRootNodes(): VueNode[];
1097
- get element(): VueNode<ElementType>;
1098
- constructor(element: ElementType);
1099
- protected findAllDOMElements(selector: string): Element[];
1100
- find<K extends keyof HTMLElementTagNameMap>(selector: K): DOMWrapper<HTMLElementTagNameMap[K]>;
1101
- find<K extends keyof SVGElementTagNameMap>(selector: K): DOMWrapper<SVGElementTagNameMap[K]>;
1102
- find<T extends Element = Element>(selector: string): DOMWrapper<T>;
1103
- find<T extends Node = Node>(selector: string | RefSelector): DOMWrapper<T>;
1104
- abstract findAll<K extends keyof HTMLElementTagNameMap>(selector: K): DOMWrapper<HTMLElementTagNameMap[K]>[];
1105
- abstract findAll<K extends keyof SVGElementTagNameMap>(selector: K): DOMWrapper<SVGElementTagNameMap[K]>[];
1106
- abstract findAll<T extends Element>(selector: string): DOMWrapper<T>[];
1107
- abstract findAll(selector: string): DOMWrapper<Element>[];
1108
- findComponent<T extends never>(selector: string): WrapperLike;
1109
- findComponent<Props, RawBindings = any, D = any, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions>(selector: ComponentOptions<Props, RawBindings, D, C, M>): VueWrapper<CreateComponentPublicInstance<Props, RawBindings, D, C, M>>;
1110
- findComponent<T extends ComponentOptions>(selector: string): VueWrapper<T extends ComponentOptions<infer Props, infer RawBindings, infer D, infer C, infer M> ? CreateComponentPublicInstance<Props, RawBindings, D, C, M> : VueWrapper<CreateComponentPublicInstance>>;
1111
- findComponent<T extends DefinedComponent>(selector: T | Exclude<FindComponentSelector, FunctionalComponent>): VueWrapper<InstanceType<T>>;
1112
- findComponent<T extends FunctionalComponent>(selector: T): DOMWrapper<Node>;
1113
- findComponent<T extends FunctionalComponent>(selector: string): DOMWrapper<Element>;
1114
- findComponent<T extends never>(selector: NameSelector | RefSelector): VueWrapper;
1115
- findComponent<T extends ComponentPublicInstance>(selector: T | FindComponentSelector): VueWrapper<T>;
1116
- findComponent<T extends never>(selector: FindComponentSelector): WrapperLike;
1117
- findAllComponents<T extends never>(selector: string): WrapperLike[];
1118
- findAllComponents<T extends DefinedComponent>(selector: T | Exclude<FindAllComponentsSelector, FunctionalComponent>): VueWrapper<InstanceType<T>>[];
1119
- findAllComponents<T extends FunctionalComponent>(selector: T): DOMWrapper<Node>[];
1120
- findAllComponents<T extends FunctionalComponent>(selector: string): DOMWrapper<Element>[];
1121
- findAllComponents<T extends never>(selector: NameSelector): VueWrapper[];
1122
- findAllComponents<T extends ComponentPublicInstance>(selector: T | FindAllComponentsSelector): VueWrapper<T>[];
1123
- findAllComponents<T extends never>(selector: FindAllComponentsSelector): WrapperLike[];
1124
- abstract setValue(value?: any): Promise<void>;
1125
- html(): string;
1126
- classes(): string[];
1127
- classes(className: string): boolean;
1128
- attributes(): {
1129
- [key: string]: string;
1130
- };
1131
- attributes(key: string): string | undefined;
1132
- text(): string;
1133
- exists(): boolean;
1134
- get<K extends keyof HTMLElementTagNameMap>(selector: K): Omit<DOMWrapper<HTMLElementTagNameMap[K]>, 'exists'>;
1135
- get<K extends keyof SVGElementTagNameMap>(selector: K): Omit<DOMWrapper<SVGElementTagNameMap[K]>, 'exists'>;
1136
- get<T extends Element = Element>(selector: string): Omit<DOMWrapper<T>, 'exists'>;
1137
- get<T extends Node = Node>(selector: string | RefSelector): Omit<DOMWrapper<T>, 'exists'>;
1138
- getComponent<T extends never>(selector: string): Omit<WrapperLike, 'exists'>;
1139
- getComponent<T extends DefinedComponent>(selector: T | Exclude<FindComponentSelector, FunctionalComponent>): Omit<VueWrapper<InstanceType<T>>, 'exists'>;
1140
- getComponent<T extends FunctionalComponent>(selector: T | string): Omit<DOMWrapper<Element>, 'exists'>;
1141
- getComponent<T extends never>(selector: NameSelector | RefSelector): Omit<VueWrapper, 'exists'>;
1142
- getComponent<T extends ComponentPublicInstance>(selector: T | FindComponentSelector): Omit<VueWrapper<T>, 'exists'>;
1143
- getComponent<T extends never>(selector: FindComponentSelector): Omit<WrapperLike, 'exists'>;
1144
- protected isDisabled: () => boolean;
1145
- isVisible(): boolean;
1146
- protected abstract getCurrentComponent(): ComponentInternalInstance | void;
1147
- trigger(eventString: DomEventNameWithModifier, options?: TriggerOptions): Promise<void>;
1148
- trigger(eventString: string, options?: TriggerOptions): Promise<void>;
1094
+ declare abstract class BaseWrapper<ElementType extends Node> implements WrapperLike {
1095
+ protected readonly wrapperElement: VueNode<ElementType>;
1096
+ protected abstract getRootNodes(): VueNode[];
1097
+ get element(): VueNode<ElementType>;
1098
+ protected constructor(element: ElementType);
1099
+ protected findAllDOMElements(selector: string): Element[];
1100
+ find<K extends keyof HTMLElementTagNameMap>(selector: K): DOMWrapper<HTMLElementTagNameMap[K]>;
1101
+ find<K extends keyof SVGElementTagNameMap>(selector: K): DOMWrapper<SVGElementTagNameMap[K]>;
1102
+ find<T extends Element = Element>(selector: string): DOMWrapper<T>;
1103
+ find<T extends Node = Node>(selector: string | RefSelector): DOMWrapper<T>;
1104
+ abstract findAll<K extends keyof HTMLElementTagNameMap>(selector: K): DOMWrapper<HTMLElementTagNameMap[K]>[];
1105
+ abstract findAll<K extends keyof SVGElementTagNameMap>(selector: K): DOMWrapper<SVGElementTagNameMap[K]>[];
1106
+ abstract findAll<T extends Element>(selector: string): DOMWrapper<T>[];
1107
+ abstract findAll(selector: string): DOMWrapper<Element>[];
1108
+ findComponent<T extends never>(selector: string): WrapperLike;
1109
+ findComponent<Props, RawBindings = any, D = any, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions>(selector: ComponentOptions<Props, RawBindings, D, C, M>): VueWrapper<CreateComponentPublicInstance<Props, RawBindings, D, C, M>>;
1110
+ findComponent<T extends ComponentOptions>(selector: string): VueWrapper<T extends ComponentOptions<infer Props, infer RawBindings, infer D, infer C, infer M> ? CreateComponentPublicInstance<Props, RawBindings, D, C, M> : VueWrapper<CreateComponentPublicInstance>>;
1111
+ findComponent<T extends DefinedComponent>(selector: T | Exclude<FindComponentSelector, FunctionalComponent>): VueWrapper<InstanceType<T>>;
1112
+ findComponent<T extends FunctionalComponent>(selector: T): DOMWrapper<Node>;
1113
+ findComponent<T extends FunctionalComponent>(selector: string): DOMWrapper<Element>;
1114
+ findComponent<T extends never>(selector: NameSelector | RefSelector): VueWrapper;
1115
+ findComponent<T extends ComponentPublicInstance>(selector: T | FindComponentSelector): VueWrapper<T>;
1116
+ findComponent<T extends never>(selector: FindComponentSelector): WrapperLike;
1117
+ findAllComponents<T extends never>(selector: string): WrapperLike[];
1118
+ findAllComponents<T extends DefinedComponent>(selector: T | Exclude<FindAllComponentsSelector, FunctionalComponent>): VueWrapper<InstanceType<T>>[];
1119
+ findAllComponents<T extends FunctionalComponent>(selector: T): DOMWrapper<Node>[];
1120
+ findAllComponents<T extends FunctionalComponent>(selector: string): DOMWrapper<Element>[];
1121
+ findAllComponents<T extends never>(selector: NameSelector): VueWrapper[];
1122
+ findAllComponents<T extends ComponentPublicInstance>(selector: T | FindAllComponentsSelector): VueWrapper<T>[];
1123
+ findAllComponents<T extends never>(selector: FindAllComponentsSelector): WrapperLike[];
1124
+ abstract setValue(value?: any): Promise<void>;
1125
+ html(options?: {
1126
+ raw?: boolean;
1127
+ }): string;
1128
+ classes(): string[];
1129
+ classes(className: string): boolean;
1130
+ attributes(): {
1131
+ [key: string]: string;
1132
+ };
1133
+ attributes(key: string): string | undefined;
1134
+ text(): string;
1135
+ exists(): boolean;
1136
+ get<K extends keyof HTMLElementTagNameMap>(selector: K): Omit<DOMWrapper<HTMLElementTagNameMap[K]>, 'exists'>;
1137
+ get<K extends keyof SVGElementTagNameMap>(selector: K): Omit<DOMWrapper<SVGElementTagNameMap[K]>, 'exists'>;
1138
+ get<T extends Element = Element>(selector: string): Omit<DOMWrapper<T>, 'exists'>;
1139
+ get<T extends Node = Node>(selector: string | RefSelector): Omit<DOMWrapper<T>, 'exists'>;
1140
+ getComponent<T extends never>(selector: string): Omit<WrapperLike, 'exists'>;
1141
+ getComponent<T extends DefinedComponent>(selector: T | Exclude<FindComponentSelector, FunctionalComponent>): Omit<VueWrapper<InstanceType<T>>, 'exists'>;
1142
+ getComponent<T extends FunctionalComponent>(selector: T | string): Omit<DOMWrapper<Element>, 'exists'>;
1143
+ getComponent<T extends never>(selector: NameSelector | RefSelector): Omit<VueWrapper, 'exists'>;
1144
+ getComponent<T extends ComponentPublicInstance>(selector: T | FindComponentSelector): Omit<VueWrapper<T>, 'exists'>;
1145
+ getComponent<T extends never>(selector: FindComponentSelector): Omit<WrapperLike, 'exists'>;
1146
+ protected isDisabled: () => boolean;
1147
+ isVisible(): boolean;
1148
+ protected abstract getCurrentComponent(): ComponentInternalInstance | void;
1149
+ trigger(eventString: DomEventNameWithModifier, options?: TriggerOptions): Promise<void>;
1150
+ trigger(eventString: string, options?: TriggerOptions): Promise<void>;
1149
1151
  }
1150
1152
 
1151
- declare class VueWrapper<T extends Omit<ComponentPublicInstance, '$emit' | keyof ComponentCustomProperties> & {
1152
- $emit: (event: any, ...args: any[]) => void;
1153
- } & ComponentCustomProperties = ComponentPublicInstance> extends BaseWrapper<Node> {
1154
- private componentVM;
1155
- private rootVM;
1156
- private __app;
1157
- private __setProps;
1158
- constructor(app: App | null, vm: T, setProps?: (props: Record<string, unknown>) => void);
1159
- private get hasMultipleRoots();
1160
- protected getRootNodes(): VueNode[];
1161
- private get parentElement();
1162
- getCurrentComponent(): vue.ComponentInternalInstance;
1163
- exists(): boolean;
1164
- findAll<K extends keyof HTMLElementTagNameMap>(selector: K): DOMWrapper<HTMLElementTagNameMap[K]>[];
1165
- findAll<K extends keyof SVGElementTagNameMap>(selector: K): DOMWrapper<SVGElementTagNameMap[K]>[];
1166
- findAll<T extends Element>(selector: string): DOMWrapper<T>[];
1167
- private attachNativeEventListener;
1168
- get element(): Element;
1169
- get vm(): T;
1170
- props(): {
1171
- [key: string]: any;
1172
- };
1173
- props(selector: string): any;
1174
- emitted<T = unknown>(): Record<string, T[]>;
1175
- emitted<T = unknown[]>(eventName: string): undefined | T[];
1176
- isVisible(): boolean;
1177
- setData(data: Record<string, unknown>): Promise<void>;
1178
- setProps(props: Record<string, unknown>): Promise<void>;
1179
- setValue(value: unknown, prop?: string): Promise<void>;
1180
- unmount(): void;
1153
+ declare class VueWrapper<T extends Omit<ComponentPublicInstance, '$emit' | keyof ComponentCustomProperties> & {
1154
+ $emit: (event: any, ...args: any[]) => void;
1155
+ } & ComponentCustomProperties = ComponentPublicInstance> extends BaseWrapper<Node> {
1156
+ private readonly componentVM;
1157
+ private readonly rootVM;
1158
+ private readonly __app;
1159
+ private readonly __setProps;
1160
+ private cleanUpCallbacks;
1161
+ constructor(app: App | null, vm: T, setProps?: (props: Record<string, unknown>) => void);
1162
+ private get hasMultipleRoots();
1163
+ protected getRootNodes(): VueNode[];
1164
+ private get parentElement();
1165
+ getCurrentComponent(): vue.ComponentInternalInstance;
1166
+ exists(): boolean;
1167
+ findAll<K extends keyof HTMLElementTagNameMap>(selector: K): DOMWrapper<HTMLElementTagNameMap[K]>[];
1168
+ findAll<K extends keyof SVGElementTagNameMap>(selector: K): DOMWrapper<SVGElementTagNameMap[K]>[];
1169
+ findAll<T extends Element>(selector: string): DOMWrapper<T>[];
1170
+ private attachNativeEventListener;
1171
+ get element(): Element;
1172
+ get vm(): T;
1173
+ props(): {
1174
+ [key: string]: any;
1175
+ };
1176
+ props(selector: string): any;
1177
+ emitted<T = unknown>(): Record<string, T[]>;
1178
+ emitted<T = unknown[]>(eventName: string): undefined | T[];
1179
+ isVisible(): boolean;
1180
+ setData(data: Record<string, unknown>): Promise<void>;
1181
+ setProps(props: Record<string, unknown>): Promise<void>;
1182
+ setValue(value: unknown, prop?: string): Promise<void>;
1183
+ unmount(): void;
1181
1184
  }
1182
1185
 
1183
- declare type CustomCreateStub = (params: {
1184
- name: string;
1185
- component: ConcreteComponent;
1186
+ type CustomCreateStub = (params: {
1187
+ name: string;
1188
+ component: ConcreteComponent;
1186
1189
  }) => ConcreteComponent;
1187
1190
 
1188
- interface GlobalConfigOptions {
1189
- global: Required<Omit<GlobalMountOptions$1, 'stubs'>> & {
1190
- stubs: Record<string, Stub>;
1191
- };
1192
- plugins: {
1193
- VueWrapper: Pluggable<VueWrapper>;
1194
- DOMWrapper: Pluggable<DOMWrapper<Node>>;
1195
- createStubs?: CustomCreateStub;
1196
- };
1197
- renderStubDefaultSlot: boolean;
1198
- }
1199
- interface Plugin<Instance, O> {
1200
- handler(instance: Instance): Record<string, any>;
1201
- handler(instance: Instance, options: O): Record<string, any>;
1202
- options: O;
1203
- }
1204
- declare class Pluggable<Instance = DOMWrapper<Node>> {
1205
- installedPlugins: Plugin<Instance, any>[];
1206
- install<O>(handler: (instance: Instance) => Record<string, any>): void;
1207
- install<O>(handler: (instance: Instance, options: O) => Record<string, any>, options: O): void;
1208
- extend(instance: Instance): void;
1209
- /** For testing */
1210
- reset(): void;
1191
+ interface GlobalConfigOptions {
1192
+ global: Required<Omit<GlobalMountOptions$1, 'stubs'>> & {
1193
+ stubs: Record<string, Stub>;
1194
+ };
1195
+ plugins: {
1196
+ VueWrapper: Pluggable<VueWrapper>;
1197
+ DOMWrapper: Pluggable<DOMWrapper<Node>>;
1198
+ createStubs?: CustomCreateStub;
1199
+ };
1200
+ /**
1201
+ * @deprecated use global.
1202
+ */
1203
+ renderStubDefaultSlot?: boolean;
1204
+ }
1205
+ interface Plugin<Instance, O> {
1206
+ handler(instance: Instance): Record<string, any>;
1207
+ handler(instance: Instance, options: O): Record<string, any>;
1208
+ options: O;
1211
1209
  }
1210
+ declare class Pluggable<Instance = DOMWrapper<Node>> {
1211
+ installedPlugins: Plugin<Instance, any>[];
1212
+ install<O>(handler: (instance: Instance) => Record<string, any>): void;
1213
+ install<O>(handler: (instance: Instance, options: O) => Record<string, any>, options: O): void;
1214
+ extend(instance: Instance): void;
1215
+ /** For testing */
1216
+ reset(): void;
1217
+ }
1218
+
1219
+ type PublicProps$1 = VNodeProps & AllowedComponentProps & ComponentCustomProps;
1220
+ type ComponentMountingOptions$1<T> = T extends DefineComponent<infer PropsOrPropOptions, any, infer D, any, any> ? MountingOptions$1<Partial<ExtractDefaultPropTypes<PropsOrPropOptions>> & Omit<Readonly<ExtractPropTypes<PropsOrPropOptions>> & PublicProps$1, keyof ExtractDefaultPropTypes<PropsOrPropOptions>>, D> & Record<string, any> : MountingOptions$1<any>;
1221
+ declare function renderToString<V extends {}>(originalComponent: {
1222
+ new (...args: any[]): V;
1223
+ __vccOpts: any;
1224
+ }, options?: MountingOptions$1<any> & Record<string, any>): Promise<string>;
1225
+ declare function renderToString<V extends {}, P>(originalComponent: {
1226
+ new (...args: any[]): V;
1227
+ __vccOpts: any;
1228
+ defaultProps?: Record<string, Prop<any>> | string[];
1229
+ }, options?: MountingOptions$1<P & PublicProps$1> & Record<string, any>): Promise<string>;
1230
+ declare function renderToString<V extends {}>(originalComponent: {
1231
+ new (...args: any[]): V;
1232
+ registerHooks(keys: string[]): void;
1233
+ }, options?: MountingOptions$1<any> & Record<string, any>): Promise<string>;
1234
+ declare function renderToString<V extends {}, P>(originalComponent: {
1235
+ new (...args: any[]): V;
1236
+ props(Props: P): any;
1237
+ registerHooks(keys: string[]): void;
1238
+ }, options?: MountingOptions$1<P & PublicProps$1> & Record<string, any>): Promise<string>;
1239
+ declare function renderToString<Props extends {}, E extends EmitsOptions = {}>(originalComponent: FunctionalComponent<Props, E>, options?: MountingOptions$1<Props & PublicProps$1> & Record<string, any>): Promise<string>;
1240
+ declare function renderToString<PropsOrPropOptions = {}, RawBindings = {}, D = {}, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = Record<string, any>, EE extends string = string, PP = PublicProps$1, Props = Readonly<ExtractPropTypes<PropsOrPropOptions>>, Defaults extends {} = ExtractDefaultPropTypes<PropsOrPropOptions>>(component: DefineComponent<PropsOrPropOptions, RawBindings, D, C, M, Mixin, Extends, E, EE, PP, Props, Defaults>, options?: MountingOptions$1<Partial<Defaults> & Omit<Props & PublicProps$1, keyof Defaults>, D> & Record<string, any>): Promise<string>;
1241
+ declare function renderToString<T extends DefineComponent<any, any, any, any, any>>(component: T, options?: ComponentMountingOptions$1<T>): Promise<string>;
1242
+ declare function renderToString<Props = {}, RawBindings = {}, D extends {} = {}, C extends ComputedOptions = {}, M extends Record<string, Function> = {}, E extends EmitsOptions = Record<string, any>, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, EE extends string = string>(componentOptions: ComponentOptionsWithoutProps<Props, RawBindings, D, C, M, E, Mixin, Extends, EE>, options?: MountingOptions$1<Props & PublicProps$1, D>): Promise<string>;
1243
+ declare function renderToString<PropNames extends string, RawBindings, D extends {}, C extends ComputedOptions = {}, M extends Record<string, Function> = {}, E extends EmitsOptions = Record<string, any>, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, EE extends string = string, Props extends Readonly<{
1244
+ [key in PropNames]?: any;
1245
+ }> = Readonly<{
1246
+ [key in PropNames]?: any;
1247
+ }>>(componentOptions: ComponentOptionsWithArrayProps<PropNames, RawBindings, D, C, M, E, Mixin, Extends, EE, Props>, options?: MountingOptions$1<Props & PublicProps$1, D>): Promise<string>;
1248
+ declare function renderToString<PropsOptions extends Readonly<ComponentPropsOptions>, RawBindings, D extends {}, C extends ComputedOptions = {}, M extends Record<string, Function> = {}, E extends EmitsOptions = Record<string, any>, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, EE extends string = string>(componentOptions: ComponentOptionsWithObjectProps<PropsOptions, RawBindings, D, C, M, E, Mixin, Extends, EE>, options?: MountingOptions$1<ExtractPropTypes<PropsOptions> & PublicProps$1, D>): Promise<string>;
1212
1249
 
1213
1250
  declare function createWrapperError<T extends object>(wrapperType: 'DOMWrapper' | 'VueWrapper'): T;
1214
1251
 
1215
1252
  declare function flushPromises(): Promise<unknown>;
1216
1253
 
1217
- declare function disableAutoUnmount(): void;
1218
- declare function enableAutoUnmount(hook: Function): void;
1254
+ declare function disableAutoUnmount(): void;
1255
+ declare function enableAutoUnmount(hook: (callback: () => void) => void): void;
1219
1256
 
1220
1257
  declare const VueTestUtils: {
1258
+ renderToString: typeof renderToString;
1221
1259
  enableAutoUnmount: typeof enableAutoUnmount;
1222
1260
  disableAutoUnmount: typeof disableAutoUnmount;
1223
1261
  RouterLinkStub: DefineComponent<{
@@ -1229,7 +1267,7 @@ declare const VueTestUtils: {
1229
1267
  type: BooleanConstructor;
1230
1268
  default: boolean;
1231
1269
  };
1232
- }, unknown, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record<string, any>, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
1270
+ }, unknown, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
1233
1271
  to: {
1234
1272
  type: (ObjectConstructor | StringConstructor)[];
1235
1273
  required: true;
@@ -1317,8 +1355,8 @@ declare function mount<Props extends {}, E extends EmitsOptions = {}>(originalCo
1317
1355
  component: VueWrapper<ComponentPublicInstance<Props>>['vm'];
1318
1356
  }>;
1319
1357
  declare function mount<PropsOrPropOptions = {}, RawBindings = {}, D = {}, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = Record<string, any>, EE extends string = string, PP = PublicProps, Props = Readonly<ExtractPropTypes<PropsOrPropOptions>>, Defaults extends {} = ExtractDefaultPropTypes<PropsOrPropOptions>>(component: DefineComponent<PropsOrPropOptions, RawBindings, D, C, M, Mixin, Extends, E, EE, PP, Props, Defaults>, options?: MountingOptions<Partial<Defaults> & Omit<Props & PublicProps, keyof Defaults>, D> & Record<string, any>): Cypress.Chainable<{
1320
- wrapper: VueWrapper<InstanceType<DefineComponent<PropsOrPropOptions, RawBindings, D, C, M, Mixin, Extends, E, EE, PP, Props, Defaults>>>;
1321
- component: VueWrapper<InstanceType<DefineComponent<PropsOrPropOptions, RawBindings, D, C, M, Mixin, Extends, E, EE, PP, Props, Defaults>>>['vm'];
1358
+ wrapper: VueWrapper<InstanceType<DefineComponent<PropsOrPropOptions, RawBindings, D, C, M, Mixin, Extends, EmitsOptions, EE, PP, Props, Defaults>>>;
1359
+ component: VueWrapper<InstanceType<DefineComponent<PropsOrPropOptions, RawBindings, D, C, M, Mixin, Extends, EmitsOptions, EE, PP, Props, Defaults>>>['vm'];
1322
1360
  }>;
1323
1361
  declare function mount<T extends DefineComponent<any, any, any, any, any>>(component: T, options?: ComponentMountingOptions<T>): Cypress.Chainable<{
1324
1362
  wrapper: VueWrapper<InstanceType<T>>;