electron 28.1.4 → 28.2.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.
package/electron.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Type definitions for Electron 28.1.4
1
+ // Type definitions for Electron 28.2.0
2
2
  // Project: http://electronjs.org/
3
3
  // Definitions by: The Electron Team <https://github.com/electron/electron>
4
4
  // Definitions: https://github.com/electron/typescript-definitions
@@ -35,21 +35,33 @@ declare namespace Electron {
35
35
  * `true` when Chrome's accessibility support is enabled, `false` otherwise.
36
36
  */
37
37
  accessibilitySupportEnabled: boolean) => void): this;
38
+ /**
39
+ * @platform darwin,win32
40
+ */
38
41
  off(event: 'accessibility-support-changed', listener: (event: Event,
39
42
  /**
40
43
  * `true` when Chrome's accessibility support is enabled, `false` otherwise.
41
44
  */
42
45
  accessibilitySupportEnabled: boolean) => void): this;
46
+ /**
47
+ * @platform darwin,win32
48
+ */
43
49
  once(event: 'accessibility-support-changed', listener: (event: Event,
44
50
  /**
45
51
  * `true` when Chrome's accessibility support is enabled, `false` otherwise.
46
52
  */
47
53
  accessibilitySupportEnabled: boolean) => void): this;
54
+ /**
55
+ * @platform darwin,win32
56
+ */
48
57
  addListener(event: 'accessibility-support-changed', listener: (event: Event,
49
58
  /**
50
59
  * `true` when Chrome's accessibility support is enabled, `false` otherwise.
51
60
  */
52
61
  accessibilitySupportEnabled: boolean) => void): this;
62
+ /**
63
+ * @platform darwin,win32
64
+ */
53
65
  removeListener(event: 'accessibility-support-changed', listener: (event: Event,
54
66
  /**
55
67
  * `true` when Chrome's accessibility support is enabled, `false` otherwise.
@@ -65,12 +77,24 @@ declare namespace Electron {
65
77
  */
66
78
  on(event: 'activate', listener: (event: Event,
67
79
  hasVisibleWindows: boolean) => void): this;
80
+ /**
81
+ * @platform darwin
82
+ */
68
83
  off(event: 'activate', listener: (event: Event,
69
84
  hasVisibleWindows: boolean) => void): this;
85
+ /**
86
+ * @platform darwin
87
+ */
70
88
  once(event: 'activate', listener: (event: Event,
71
89
  hasVisibleWindows: boolean) => void): this;
90
+ /**
91
+ * @platform darwin
92
+ */
72
93
  addListener(event: 'activate', listener: (event: Event,
73
94
  hasVisibleWindows: boolean) => void): this;
95
+ /**
96
+ * @platform darwin
97
+ */
74
98
  removeListener(event: 'activate', listener: (event: Event,
75
99
  hasVisibleWindows: boolean) => void): this;
76
100
  /**
@@ -88,6 +112,9 @@ declare namespace Electron {
88
112
  * Contains app-specific state stored by the activity.
89
113
  */
90
114
  userInfo: unknown) => void): this;
115
+ /**
116
+ * @platform darwin
117
+ */
91
118
  off(event: 'activity-was-continued', listener: (event: Event,
92
119
  /**
93
120
  * A string identifying the activity. Maps to `NSUserActivity.activityType`.
@@ -97,6 +124,9 @@ declare namespace Electron {
97
124
  * Contains app-specific state stored by the activity.
98
125
  */
99
126
  userInfo: unknown) => void): this;
127
+ /**
128
+ * @platform darwin
129
+ */
100
130
  once(event: 'activity-was-continued', listener: (event: Event,
101
131
  /**
102
132
  * A string identifying the activity. Maps to `NSUserActivity.activityType`.
@@ -106,6 +136,9 @@ declare namespace Electron {
106
136
  * Contains app-specific state stored by the activity.
107
137
  */
108
138
  userInfo: unknown) => void): this;
139
+ /**
140
+ * @platform darwin
141
+ */
109
142
  addListener(event: 'activity-was-continued', listener: (event: Event,
110
143
  /**
111
144
  * A string identifying the activity. Maps to `NSUserActivity.activityType`.
@@ -115,6 +148,9 @@ declare namespace Electron {
115
148
  * Contains app-specific state stored by the activity.
116
149
  */
117
150
  userInfo: unknown) => void): this;
151
+ /**
152
+ * @platform darwin
153
+ */
118
154
  removeListener(event: 'activity-was-continued', listener: (event: Event,
119
155
  /**
120
156
  * A string identifying the activity. Maps to `NSUserActivity.activityType`.
@@ -271,6 +307,9 @@ declare namespace Electron {
271
307
  */
272
308
  userInfo: unknown,
273
309
  details: ContinueActivityDetails) => void): this;
310
+ /**
311
+ * @platform darwin
312
+ */
274
313
  off(event: 'continue-activity', listener: (event: Event,
275
314
  /**
276
315
  * A string identifying the activity. Maps to `NSUserActivity.activityType`.
@@ -281,6 +320,9 @@ declare namespace Electron {
281
320
  */
282
321
  userInfo: unknown,
283
322
  details: ContinueActivityDetails) => void): this;
323
+ /**
324
+ * @platform darwin
325
+ */
284
326
  once(event: 'continue-activity', listener: (event: Event,
285
327
  /**
286
328
  * A string identifying the activity. Maps to `NSUserActivity.activityType`.
@@ -291,6 +333,9 @@ declare namespace Electron {
291
333
  */
292
334
  userInfo: unknown,
293
335
  details: ContinueActivityDetails) => void): this;
336
+ /**
337
+ * @platform darwin
338
+ */
294
339
  addListener(event: 'continue-activity', listener: (event: Event,
295
340
  /**
296
341
  * A string identifying the activity. Maps to `NSUserActivity.activityType`.
@@ -301,6 +346,9 @@ declare namespace Electron {
301
346
  */
302
347
  userInfo: unknown,
303
348
  details: ContinueActivityDetails) => void): this;
349
+ /**
350
+ * @platform darwin
351
+ */
304
352
  removeListener(event: 'continue-activity', listener: (event: Event,
305
353
  /**
306
354
  * A string identifying the activity. Maps to `NSUserActivity.activityType`.
@@ -326,6 +374,9 @@ declare namespace Electron {
326
374
  * A string with the error's localized description.
327
375
  */
328
376
  error: string) => void): this;
377
+ /**
378
+ * @platform darwin
379
+ */
329
380
  off(event: 'continue-activity-error', listener: (event: Event,
330
381
  /**
331
382
  * A string identifying the activity. Maps to `NSUserActivity.activityType`.
@@ -335,6 +386,9 @@ declare namespace Electron {
335
386
  * A string with the error's localized description.
336
387
  */
337
388
  error: string) => void): this;
389
+ /**
390
+ * @platform darwin
391
+ */
338
392
  once(event: 'continue-activity-error', listener: (event: Event,
339
393
  /**
340
394
  * A string identifying the activity. Maps to `NSUserActivity.activityType`.
@@ -344,6 +398,9 @@ declare namespace Electron {
344
398
  * A string with the error's localized description.
345
399
  */
346
400
  error: string) => void): this;
401
+ /**
402
+ * @platform darwin
403
+ */
347
404
  addListener(event: 'continue-activity-error', listener: (event: Event,
348
405
  /**
349
406
  * A string identifying the activity. Maps to `NSUserActivity.activityType`.
@@ -353,6 +410,9 @@ declare namespace Electron {
353
410
  * A string with the error's localized description.
354
411
  */
355
412
  error: string) => void): this;
413
+ /**
414
+ * @platform darwin
415
+ */
356
416
  removeListener(event: 'continue-activity-error', listener: (event: Event,
357
417
  /**
358
418
  * A string identifying the activity. Maps to `NSUserActivity.activityType`.
@@ -371,9 +431,21 @@ declare namespace Electron {
371
431
  * @platform darwin
372
432
  */
373
433
  on(event: 'did-become-active', listener: (event: Event) => void): this;
434
+ /**
435
+ * @platform darwin
436
+ */
374
437
  off(event: 'did-become-active', listener: (event: Event) => void): this;
438
+ /**
439
+ * @platform darwin
440
+ */
375
441
  once(event: 'did-become-active', listener: (event: Event) => void): this;
442
+ /**
443
+ * @platform darwin
444
+ */
376
445
  addListener(event: 'did-become-active', listener: (event: Event) => void): this;
446
+ /**
447
+ * @platform darwin
448
+ */
377
449
  removeListener(event: 'did-become-active', listener: (event: Event) => void): this;
378
450
  /**
379
451
  * Emitted when the app is no longer active and doesn’t have focus. This can be
@@ -383,9 +455,21 @@ declare namespace Electron {
383
455
  * @platform darwin
384
456
  */
385
457
  on(event: 'did-resign-active', listener: (event: Event) => void): this;
458
+ /**
459
+ * @platform darwin
460
+ */
386
461
  off(event: 'did-resign-active', listener: (event: Event) => void): this;
462
+ /**
463
+ * @platform darwin
464
+ */
387
465
  once(event: 'did-resign-active', listener: (event: Event) => void): this;
466
+ /**
467
+ * @platform darwin
468
+ */
388
469
  addListener(event: 'did-resign-active', listener: (event: Event) => void): this;
470
+ /**
471
+ * @platform darwin
472
+ */
389
473
  removeListener(event: 'did-resign-active', listener: (event: Event) => void): this;
390
474
  /**
391
475
  * Emitted whenever there is a GPU info update.
@@ -407,12 +491,24 @@ declare namespace Electron {
407
491
  */
408
492
  on(event: 'gpu-process-crashed', listener: (event: Event,
409
493
  killed: boolean) => void): this;
494
+ /**
495
+ * @deprecated
496
+ */
410
497
  off(event: 'gpu-process-crashed', listener: (event: Event,
411
498
  killed: boolean) => void): this;
499
+ /**
500
+ * @deprecated
501
+ */
412
502
  once(event: 'gpu-process-crashed', listener: (event: Event,
413
503
  killed: boolean) => void): this;
504
+ /**
505
+ * @deprecated
506
+ */
414
507
  addListener(event: 'gpu-process-crashed', listener: (event: Event,
415
508
  killed: boolean) => void): this;
509
+ /**
510
+ * @deprecated
511
+ */
416
512
  removeListener(event: 'gpu-process-crashed', listener: (event: Event,
417
513
  killed: boolean) => void): this;
418
514
  /**
@@ -458,9 +554,21 @@ declare namespace Electron {
458
554
  * @platform darwin
459
555
  */
460
556
  on(event: 'new-window-for-tab', listener: (event: Event) => void): this;
557
+ /**
558
+ * @platform darwin
559
+ */
461
560
  off(event: 'new-window-for-tab', listener: (event: Event) => void): this;
561
+ /**
562
+ * @platform darwin
563
+ */
462
564
  once(event: 'new-window-for-tab', listener: (event: Event) => void): this;
565
+ /**
566
+ * @platform darwin
567
+ */
463
568
  addListener(event: 'new-window-for-tab', listener: (event: Event) => void): this;
569
+ /**
570
+ * @platform darwin
571
+ */
464
572
  removeListener(event: 'new-window-for-tab', listener: (event: Event) => void): this;
465
573
  /**
466
574
  * Emitted when the user wants to open a file with the application. The `open-file`
@@ -479,12 +587,24 @@ declare namespace Electron {
479
587
  */
480
588
  on(event: 'open-file', listener: (event: Event,
481
589
  path: string) => void): this;
590
+ /**
591
+ * @platform darwin
592
+ */
482
593
  off(event: 'open-file', listener: (event: Event,
483
594
  path: string) => void): this;
595
+ /**
596
+ * @platform darwin
597
+ */
484
598
  once(event: 'open-file', listener: (event: Event,
485
599
  path: string) => void): this;
600
+ /**
601
+ * @platform darwin
602
+ */
486
603
  addListener(event: 'open-file', listener: (event: Event,
487
604
  path: string) => void): this;
605
+ /**
606
+ * @platform darwin
607
+ */
488
608
  removeListener(event: 'open-file', listener: (event: Event,
489
609
  path: string) => void): this;
490
610
  /**
@@ -501,12 +621,24 @@ declare namespace Electron {
501
621
  */
502
622
  on(event: 'open-url', listener: (event: Event,
503
623
  url: string) => void): this;
624
+ /**
625
+ * @platform darwin
626
+ */
504
627
  off(event: 'open-url', listener: (event: Event,
505
628
  url: string) => void): this;
629
+ /**
630
+ * @platform darwin
631
+ */
506
632
  once(event: 'open-url', listener: (event: Event,
507
633
  url: string) => void): this;
634
+ /**
635
+ * @platform darwin
636
+ */
508
637
  addListener(event: 'open-url', listener: (event: Event,
509
638
  url: string) => void): this;
639
+ /**
640
+ * @platform darwin
641
+ */
510
642
  removeListener(event: 'open-url', listener: (event: Event,
511
643
  url: string) => void): this;
512
644
  /**
@@ -590,15 +722,27 @@ declare namespace Electron {
590
722
  on(event: 'renderer-process-crashed', listener: (event: Event,
591
723
  webContents: WebContents,
592
724
  killed: boolean) => void): this;
725
+ /**
726
+ * @deprecated
727
+ */
593
728
  off(event: 'renderer-process-crashed', listener: (event: Event,
594
729
  webContents: WebContents,
595
730
  killed: boolean) => void): this;
731
+ /**
732
+ * @deprecated
733
+ */
596
734
  once(event: 'renderer-process-crashed', listener: (event: Event,
597
735
  webContents: WebContents,
598
736
  killed: boolean) => void): this;
737
+ /**
738
+ * @deprecated
739
+ */
599
740
  addListener(event: 'renderer-process-crashed', listener: (event: Event,
600
741
  webContents: WebContents,
601
742
  killed: boolean) => void): this;
743
+ /**
744
+ * @deprecated
745
+ */
602
746
  removeListener(event: 'renderer-process-crashed', listener: (event: Event,
603
747
  webContents: WebContents,
604
748
  killed: boolean) => void): this;
@@ -748,6 +892,9 @@ declare namespace Electron {
748
892
  * Contains app-specific state stored by the activity.
749
893
  */
750
894
  userInfo: unknown) => void): this;
895
+ /**
896
+ * @platform darwin
897
+ */
751
898
  off(event: 'update-activity-state', listener: (event: Event,
752
899
  /**
753
900
  * A string identifying the activity. Maps to `NSUserActivity.activityType`.
@@ -757,6 +904,9 @@ declare namespace Electron {
757
904
  * Contains app-specific state stored by the activity.
758
905
  */
759
906
  userInfo: unknown) => void): this;
907
+ /**
908
+ * @platform darwin
909
+ */
760
910
  once(event: 'update-activity-state', listener: (event: Event,
761
911
  /**
762
912
  * A string identifying the activity. Maps to `NSUserActivity.activityType`.
@@ -766,6 +916,9 @@ declare namespace Electron {
766
916
  * Contains app-specific state stored by the activity.
767
917
  */
768
918
  userInfo: unknown) => void): this;
919
+ /**
920
+ * @platform darwin
921
+ */
769
922
  addListener(event: 'update-activity-state', listener: (event: Event,
770
923
  /**
771
924
  * A string identifying the activity. Maps to `NSUserActivity.activityType`.
@@ -775,6 +928,9 @@ declare namespace Electron {
775
928
  * Contains app-specific state stored by the activity.
776
929
  */
777
930
  userInfo: unknown) => void): this;
931
+ /**
932
+ * @platform darwin
933
+ */
778
934
  removeListener(event: 'update-activity-state', listener: (event: Event,
779
935
  /**
780
936
  * A string identifying the activity. Maps to `NSUserActivity.activityType`.
@@ -809,21 +965,33 @@ declare namespace Electron {
809
965
  * A string identifying the activity. Maps to `NSUserActivity.activityType`.
810
966
  */
811
967
  type: string) => void): this;
968
+ /**
969
+ * @platform darwin
970
+ */
812
971
  off(event: 'will-continue-activity', listener: (event: Event,
813
972
  /**
814
973
  * A string identifying the activity. Maps to `NSUserActivity.activityType`.
815
974
  */
816
975
  type: string) => void): this;
976
+ /**
977
+ * @platform darwin
978
+ */
817
979
  once(event: 'will-continue-activity', listener: (event: Event,
818
980
  /**
819
981
  * A string identifying the activity. Maps to `NSUserActivity.activityType`.
820
982
  */
821
983
  type: string) => void): this;
984
+ /**
985
+ * @platform darwin
986
+ */
822
987
  addListener(event: 'will-continue-activity', listener: (event: Event,
823
988
  /**
824
989
  * A string identifying the activity. Maps to `NSUserActivity.activityType`.
825
990
  */
826
991
  type: string) => void): this;
992
+ /**
993
+ * @platform darwin
994
+ */
827
995
  removeListener(event: 'will-continue-activity', listener: (event: Event,
828
996
  /**
829
997
  * A string identifying the activity. Maps to `NSUserActivity.activityType`.
@@ -1921,12 +2089,24 @@ declare namespace Electron {
1921
2089
  */
1922
2090
  on(event: 'app-command', listener: (event: Event,
1923
2091
  command: string) => void): this;
2092
+ /**
2093
+ * @platform win32,linux
2094
+ */
1924
2095
  off(event: 'app-command', listener: (event: Event,
1925
2096
  command: string) => void): this;
2097
+ /**
2098
+ * @platform win32,linux
2099
+ */
1926
2100
  once(event: 'app-command', listener: (event: Event,
1927
2101
  command: string) => void): this;
2102
+ /**
2103
+ * @platform win32,linux
2104
+ */
1928
2105
  addListener(event: 'app-command', listener: (event: Event,
1929
2106
  command: string) => void): this;
2107
+ /**
2108
+ * @platform win32,linux
2109
+ */
1930
2110
  removeListener(event: 'app-command', listener: (event: Event,
1931
2111
  command: string) => void): this;
1932
2112
  /**
@@ -2047,9 +2227,21 @@ declare namespace Electron {
2047
2227
  * @platform darwin,win32
2048
2228
  */
2049
2229
  on(event: 'moved', listener: Function): this;
2230
+ /**
2231
+ * @platform darwin,win32
2232
+ */
2050
2233
  off(event: 'moved', listener: Function): this;
2234
+ /**
2235
+ * @platform darwin,win32
2236
+ */
2051
2237
  once(event: 'moved', listener: Function): this;
2238
+ /**
2239
+ * @platform darwin,win32
2240
+ */
2052
2241
  addListener(event: 'moved', listener: Function): this;
2242
+ /**
2243
+ * @platform darwin,win32
2244
+ */
2053
2245
  removeListener(event: 'moved', listener: Function): this;
2054
2246
  /**
2055
2247
  * Emitted when the native new tab button is clicked.
@@ -2057,9 +2249,21 @@ declare namespace Electron {
2057
2249
  * @platform darwin
2058
2250
  */
2059
2251
  on(event: 'new-window-for-tab', listener: Function): this;
2252
+ /**
2253
+ * @platform darwin
2254
+ */
2060
2255
  off(event: 'new-window-for-tab', listener: Function): this;
2256
+ /**
2257
+ * @platform darwin
2258
+ */
2061
2259
  once(event: 'new-window-for-tab', listener: Function): this;
2260
+ /**
2261
+ * @platform darwin
2262
+ */
2062
2263
  addListener(event: 'new-window-for-tab', listener: Function): this;
2264
+ /**
2265
+ * @platform darwin
2266
+ */
2063
2267
  removeListener(event: 'new-window-for-tab', listener: Function): this;
2064
2268
  /**
2065
2269
  * Emitted when the document changed its title, calling `event.preventDefault()`
@@ -2112,9 +2316,21 @@ declare namespace Electron {
2112
2316
  * @platform darwin,win32
2113
2317
  */
2114
2318
  on(event: 'resized', listener: Function): this;
2319
+ /**
2320
+ * @platform darwin,win32
2321
+ */
2115
2322
  off(event: 'resized', listener: Function): this;
2323
+ /**
2324
+ * @platform darwin,win32
2325
+ */
2116
2326
  once(event: 'resized', listener: Function): this;
2327
+ /**
2328
+ * @platform darwin,win32
2329
+ */
2117
2330
  addListener(event: 'resized', listener: Function): this;
2331
+ /**
2332
+ * @platform darwin,win32
2333
+ */
2118
2334
  removeListener(event: 'resized', listener: Function): this;
2119
2335
  /**
2120
2336
  * Emitted when the unresponsive web page becomes responsive again.
@@ -2143,12 +2359,24 @@ declare namespace Electron {
2143
2359
  */
2144
2360
  on(event: 'rotate-gesture', listener: (event: Event,
2145
2361
  rotation: number) => void): this;
2362
+ /**
2363
+ * @platform darwin
2364
+ */
2146
2365
  off(event: 'rotate-gesture', listener: (event: Event,
2147
2366
  rotation: number) => void): this;
2367
+ /**
2368
+ * @platform darwin
2369
+ */
2148
2370
  once(event: 'rotate-gesture', listener: (event: Event,
2149
2371
  rotation: number) => void): this;
2372
+ /**
2373
+ * @platform darwin
2374
+ */
2150
2375
  addListener(event: 'rotate-gesture', listener: (event: Event,
2151
2376
  rotation: number) => void): this;
2377
+ /**
2378
+ * @platform darwin
2379
+ */
2152
2380
  removeListener(event: 'rotate-gesture', listener: (event: Event,
2153
2381
  rotation: number) => void): this;
2154
2382
  /**
@@ -2158,9 +2386,21 @@ declare namespace Electron {
2158
2386
  * @platform win32
2159
2387
  */
2160
2388
  on(event: 'session-end', listener: Function): this;
2389
+ /**
2390
+ * @platform win32
2391
+ */
2161
2392
  off(event: 'session-end', listener: Function): this;
2393
+ /**
2394
+ * @platform win32
2395
+ */
2162
2396
  once(event: 'session-end', listener: Function): this;
2397
+ /**
2398
+ * @platform win32
2399
+ */
2163
2400
  addListener(event: 'session-end', listener: Function): this;
2401
+ /**
2402
+ * @platform win32
2403
+ */
2164
2404
  removeListener(event: 'session-end', listener: Function): this;
2165
2405
  /**
2166
2406
  * Emitted when the window opens a sheet.
@@ -2168,9 +2408,21 @@ declare namespace Electron {
2168
2408
  * @platform darwin
2169
2409
  */
2170
2410
  on(event: 'sheet-begin', listener: Function): this;
2411
+ /**
2412
+ * @platform darwin
2413
+ */
2171
2414
  off(event: 'sheet-begin', listener: Function): this;
2415
+ /**
2416
+ * @platform darwin
2417
+ */
2172
2418
  once(event: 'sheet-begin', listener: Function): this;
2419
+ /**
2420
+ * @platform darwin
2421
+ */
2173
2422
  addListener(event: 'sheet-begin', listener: Function): this;
2423
+ /**
2424
+ * @platform darwin
2425
+ */
2174
2426
  removeListener(event: 'sheet-begin', listener: Function): this;
2175
2427
  /**
2176
2428
  * Emitted when the window has closed a sheet.
@@ -2178,10 +2430,22 @@ declare namespace Electron {
2178
2430
  * @platform darwin
2179
2431
  */
2180
2432
  on(event: 'sheet-end', listener: Function): this;
2181
- off(event: 'sheet-end', listener: Function): this;
2182
- once(event: 'sheet-end', listener: Function): this;
2183
- addListener(event: 'sheet-end', listener: Function): this;
2184
- removeListener(event: 'sheet-end', listener: Function): this;
2433
+ /**
2434
+ * @platform darwin
2435
+ */
2436
+ off(event: 'sheet-end', listener: Function): this;
2437
+ /**
2438
+ * @platform darwin
2439
+ */
2440
+ once(event: 'sheet-end', listener: Function): this;
2441
+ /**
2442
+ * @platform darwin
2443
+ */
2444
+ addListener(event: 'sheet-end', listener: Function): this;
2445
+ /**
2446
+ * @platform darwin
2447
+ */
2448
+ removeListener(event: 'sheet-end', listener: Function): this;
2185
2449
  /**
2186
2450
  * Emitted when the window is shown.
2187
2451
  */
@@ -2205,12 +2469,24 @@ declare namespace Electron {
2205
2469
  */
2206
2470
  on(event: 'swipe', listener: (event: Event,
2207
2471
  direction: string) => void): this;
2472
+ /**
2473
+ * @platform darwin
2474
+ */
2208
2475
  off(event: 'swipe', listener: (event: Event,
2209
2476
  direction: string) => void): this;
2477
+ /**
2478
+ * @platform darwin
2479
+ */
2210
2480
  once(event: 'swipe', listener: (event: Event,
2211
2481
  direction: string) => void): this;
2482
+ /**
2483
+ * @platform darwin
2484
+ */
2212
2485
  addListener(event: 'swipe', listener: (event: Event,
2213
2486
  direction: string) => void): this;
2487
+ /**
2488
+ * @platform darwin
2489
+ */
2214
2490
  removeListener(event: 'swipe', listener: (event: Event,
2215
2491
  direction: string) => void): this;
2216
2492
  /**
@@ -2228,21 +2504,33 @@ declare namespace Electron {
2228
2504
  * The screen coordinates the context menu was triggered at
2229
2505
  */
2230
2506
  point: Point) => void): this;
2507
+ /**
2508
+ * @platform win32
2509
+ */
2231
2510
  off(event: 'system-context-menu', listener: (event: Event,
2232
2511
  /**
2233
2512
  * The screen coordinates the context menu was triggered at
2234
2513
  */
2235
2514
  point: Point) => void): this;
2515
+ /**
2516
+ * @platform win32
2517
+ */
2236
2518
  once(event: 'system-context-menu', listener: (event: Event,
2237
2519
  /**
2238
2520
  * The screen coordinates the context menu was triggered at
2239
2521
  */
2240
2522
  point: Point) => void): this;
2523
+ /**
2524
+ * @platform win32
2525
+ */
2241
2526
  addListener(event: 'system-context-menu', listener: (event: Event,
2242
2527
  /**
2243
2528
  * The screen coordinates the context menu was triggered at
2244
2529
  */
2245
2530
  point: Point) => void): this;
2531
+ /**
2532
+ * @platform win32
2533
+ */
2246
2534
  removeListener(event: 'system-context-menu', listener: (event: Event,
2247
2535
  /**
2248
2536
  * The screen coordinates the context menu was triggered at
@@ -2278,21 +2566,33 @@ declare namespace Electron {
2278
2566
  * Location the window is being moved to.
2279
2567
  */
2280
2568
  newBounds: Rectangle) => void): this;
2569
+ /**
2570
+ * @platform darwin,win32
2571
+ */
2281
2572
  off(event: 'will-move', listener: (event: Event,
2282
2573
  /**
2283
2574
  * Location the window is being moved to.
2284
2575
  */
2285
2576
  newBounds: Rectangle) => void): this;
2577
+ /**
2578
+ * @platform darwin,win32
2579
+ */
2286
2580
  once(event: 'will-move', listener: (event: Event,
2287
2581
  /**
2288
2582
  * Location the window is being moved to.
2289
2583
  */
2290
2584
  newBounds: Rectangle) => void): this;
2585
+ /**
2586
+ * @platform darwin,win32
2587
+ */
2291
2588
  addListener(event: 'will-move', listener: (event: Event,
2292
2589
  /**
2293
2590
  * Location the window is being moved to.
2294
2591
  */
2295
2592
  newBounds: Rectangle) => void): this;
2593
+ /**
2594
+ * @platform darwin,win32
2595
+ */
2296
2596
  removeListener(event: 'will-move', listener: (event: Event,
2297
2597
  /**
2298
2598
  * Location the window is being moved to.
@@ -2322,24 +2622,36 @@ declare namespace Electron {
2322
2622
  */
2323
2623
  newBounds: Rectangle,
2324
2624
  details: WillResizeDetails) => void): this;
2625
+ /**
2626
+ * @platform darwin,win32
2627
+ */
2325
2628
  off(event: 'will-resize', listener: (event: Event,
2326
2629
  /**
2327
2630
  * Size the window is being resized to.
2328
2631
  */
2329
2632
  newBounds: Rectangle,
2330
2633
  details: WillResizeDetails) => void): this;
2634
+ /**
2635
+ * @platform darwin,win32
2636
+ */
2331
2637
  once(event: 'will-resize', listener: (event: Event,
2332
2638
  /**
2333
2639
  * Size the window is being resized to.
2334
2640
  */
2335
2641
  newBounds: Rectangle,
2336
2642
  details: WillResizeDetails) => void): this;
2643
+ /**
2644
+ * @platform darwin,win32
2645
+ */
2337
2646
  addListener(event: 'will-resize', listener: (event: Event,
2338
2647
  /**
2339
2648
  * Size the window is being resized to.
2340
2649
  */
2341
2650
  newBounds: Rectangle,
2342
2651
  details: WillResizeDetails) => void): this;
2652
+ /**
2653
+ * @platform darwin,win32
2654
+ */
2343
2655
  removeListener(event: 'will-resize', listener: (event: Event,
2344
2656
  /**
2345
2657
  * Size the window is being resized to.
@@ -3205,7 +3517,7 @@ declare namespace Electron {
3205
3517
  *
3206
3518
  * @platform win32
3207
3519
  */
3208
- setTitleBarOverlay(options: TitleBarOverlayOptions): void;
3520
+ setTitleBarOverlay(options: TitleBarOverlay): void;
3209
3521
  /**
3210
3522
  * Raises `browserView` above other `BrowserView`s attached to `win`. Throws an
3211
3523
  * error if `browserView` is not attached to `win`.
@@ -6387,7 +6699,7 @@ declare namespace Electron {
6387
6699
  visible: boolean;
6388
6700
  }
6389
6701
 
6390
- class MessageChannelMain extends NodeEventEmitter {
6702
+ class MessageChannelMain {
6391
6703
 
6392
6704
  // Docs: https://electronjs.org/docs/api/message-channel-main
6393
6705
 
@@ -6770,6 +7082,8 @@ declare namespace Electron {
6770
7082
  * protocol handlers will not be called for this request. This allows forwarding an
6771
7083
  * intercepted request to the built-in handler. webRequest handlers will still be
6772
7084
  * triggered when bypassing custom protocols.
7085
+ *
7086
+ * Note: in the utility process custom protocols are not supported.
6773
7087
  */
6774
7088
  fetch(input: (string) | (GlobalRequest), init?: RequestInit & { bypassCustomProtocolHandlers?: boolean }): Promise<GlobalResponse>;
6775
7089
  /**
@@ -6844,21 +7158,33 @@ declare namespace Electron {
6844
7158
  * The index of the action that was activated.
6845
7159
  */
6846
7160
  index: number) => void): this;
7161
+ /**
7162
+ * @platform darwin
7163
+ */
6847
7164
  off(event: 'action', listener: (event: Event,
6848
7165
  /**
6849
7166
  * The index of the action that was activated.
6850
7167
  */
6851
7168
  index: number) => void): this;
7169
+ /**
7170
+ * @platform darwin
7171
+ */
6852
7172
  once(event: 'action', listener: (event: Event,
6853
7173
  /**
6854
7174
  * The index of the action that was activated.
6855
7175
  */
6856
7176
  index: number) => void): this;
7177
+ /**
7178
+ * @platform darwin
7179
+ */
6857
7180
  addListener(event: 'action', listener: (event: Event,
6858
7181
  /**
6859
7182
  * The index of the action that was activated.
6860
7183
  */
6861
7184
  index: number) => void): this;
7185
+ /**
7186
+ * @platform darwin
7187
+ */
6862
7188
  removeListener(event: 'action', listener: (event: Event,
6863
7189
  /**
6864
7190
  * The index of the action that was activated.
@@ -6901,21 +7227,33 @@ declare namespace Electron {
6901
7227
  * The error encountered during execution of the `show()` method.
6902
7228
  */
6903
7229
  error: string) => void): this;
7230
+ /**
7231
+ * @platform win32
7232
+ */
6904
7233
  off(event: 'failed', listener: (event: Event,
6905
7234
  /**
6906
7235
  * The error encountered during execution of the `show()` method.
6907
7236
  */
6908
7237
  error: string) => void): this;
7238
+ /**
7239
+ * @platform win32
7240
+ */
6909
7241
  once(event: 'failed', listener: (event: Event,
6910
7242
  /**
6911
7243
  * The error encountered during execution of the `show()` method.
6912
7244
  */
6913
7245
  error: string) => void): this;
7246
+ /**
7247
+ * @platform win32
7248
+ */
6914
7249
  addListener(event: 'failed', listener: (event: Event,
6915
7250
  /**
6916
7251
  * The error encountered during execution of the `show()` method.
6917
7252
  */
6918
7253
  error: string) => void): this;
7254
+ /**
7255
+ * @platform win32
7256
+ */
6919
7257
  removeListener(event: 'failed', listener: (event: Event,
6920
7258
  /**
6921
7259
  * The error encountered during execution of the `show()` method.
@@ -6932,21 +7270,33 @@ declare namespace Electron {
6932
7270
  * The string the user entered into the inline reply field.
6933
7271
  */
6934
7272
  reply: string) => void): this;
7273
+ /**
7274
+ * @platform darwin
7275
+ */
6935
7276
  off(event: 'reply', listener: (event: Event,
6936
7277
  /**
6937
7278
  * The string the user entered into the inline reply field.
6938
7279
  */
6939
7280
  reply: string) => void): this;
7281
+ /**
7282
+ * @platform darwin
7283
+ */
6940
7284
  once(event: 'reply', listener: (event: Event,
6941
7285
  /**
6942
7286
  * The string the user entered into the inline reply field.
6943
7287
  */
6944
7288
  reply: string) => void): this;
7289
+ /**
7290
+ * @platform darwin
7291
+ */
6945
7292
  addListener(event: 'reply', listener: (event: Event,
6946
7293
  /**
6947
7294
  * The string the user entered into the inline reply field.
6948
7295
  */
6949
7296
  reply: string) => void): this;
7297
+ /**
7298
+ * @platform darwin
7299
+ */
6950
7300
  removeListener(event: 'reply', listener: (event: Event,
6951
7301
  /**
6952
7302
  * The string the user entered into the inline reply field.
@@ -7178,9 +7528,21 @@ declare namespace Electron {
7178
7528
  * @platform darwin,win32
7179
7529
  */
7180
7530
  on(event: 'lock-screen', listener: Function): this;
7531
+ /**
7532
+ * @platform darwin,win32
7533
+ */
7181
7534
  off(event: 'lock-screen', listener: Function): this;
7535
+ /**
7536
+ * @platform darwin,win32
7537
+ */
7182
7538
  once(event: 'lock-screen', listener: Function): this;
7539
+ /**
7540
+ * @platform darwin,win32
7541
+ */
7183
7542
  addListener(event: 'lock-screen', listener: Function): this;
7543
+ /**
7544
+ * @platform darwin,win32
7545
+ */
7184
7546
  removeListener(event: 'lock-screen', listener: Function): this;
7185
7547
  /**
7186
7548
  * Emitted when the system changes to AC power.
@@ -7188,9 +7550,21 @@ declare namespace Electron {
7188
7550
  * @platform darwin,win32
7189
7551
  */
7190
7552
  on(event: 'on-ac', listener: Function): this;
7553
+ /**
7554
+ * @platform darwin,win32
7555
+ */
7191
7556
  off(event: 'on-ac', listener: Function): this;
7557
+ /**
7558
+ * @platform darwin,win32
7559
+ */
7192
7560
  once(event: 'on-ac', listener: Function): this;
7561
+ /**
7562
+ * @platform darwin,win32
7563
+ */
7193
7564
  addListener(event: 'on-ac', listener: Function): this;
7565
+ /**
7566
+ * @platform darwin,win32
7567
+ */
7194
7568
  removeListener(event: 'on-ac', listener: Function): this;
7195
7569
  /**
7196
7570
  * Emitted when system changes to battery power.
@@ -7198,9 +7572,21 @@ declare namespace Electron {
7198
7572
  * @platform darwin
7199
7573
  */
7200
7574
  on(event: 'on-battery', listener: Function): this;
7575
+ /**
7576
+ * @platform darwin
7577
+ */
7201
7578
  off(event: 'on-battery', listener: Function): this;
7579
+ /**
7580
+ * @platform darwin
7581
+ */
7202
7582
  once(event: 'on-battery', listener: Function): this;
7583
+ /**
7584
+ * @platform darwin
7585
+ */
7203
7586
  addListener(event: 'on-battery', listener: Function): this;
7587
+ /**
7588
+ * @platform darwin
7589
+ */
7204
7590
  removeListener(event: 'on-battery', listener: Function): this;
7205
7591
  /**
7206
7592
  * Emitted when system is resuming.
@@ -7219,9 +7605,21 @@ declare namespace Electron {
7219
7605
  * @platform linux,darwin
7220
7606
  */
7221
7607
  on(event: 'shutdown', listener: Function): this;
7608
+ /**
7609
+ * @platform linux,darwin
7610
+ */
7222
7611
  off(event: 'shutdown', listener: Function): this;
7612
+ /**
7613
+ * @platform linux,darwin
7614
+ */
7223
7615
  once(event: 'shutdown', listener: Function): this;
7616
+ /**
7617
+ * @platform linux,darwin
7618
+ */
7224
7619
  addListener(event: 'shutdown', listener: Function): this;
7620
+ /**
7621
+ * @platform linux,darwin
7622
+ */
7225
7623
  removeListener(event: 'shutdown', listener: Function): this;
7226
7624
  /**
7227
7625
  * Notification of a change in the operating system's advertised speed limit for
@@ -7231,9 +7629,21 @@ declare namespace Electron {
7231
7629
  * @platform darwin,win32
7232
7630
  */
7233
7631
  on(event: 'speed-limit-change', listener: Function): this;
7632
+ /**
7633
+ * @platform darwin,win32
7634
+ */
7234
7635
  off(event: 'speed-limit-change', listener: Function): this;
7636
+ /**
7637
+ * @platform darwin,win32
7638
+ */
7235
7639
  once(event: 'speed-limit-change', listener: Function): this;
7640
+ /**
7641
+ * @platform darwin,win32
7642
+ */
7236
7643
  addListener(event: 'speed-limit-change', listener: Function): this;
7644
+ /**
7645
+ * @platform darwin,win32
7646
+ */
7237
7647
  removeListener(event: 'speed-limit-change', listener: Function): this;
7238
7648
  /**
7239
7649
  * Emitted when the system is suspending.
@@ -7260,9 +7670,21 @@ declare namespace Electron {
7260
7670
  * @platform darwin
7261
7671
  */
7262
7672
  on(event: 'thermal-state-change', listener: Function): this;
7673
+ /**
7674
+ * @platform darwin
7675
+ */
7263
7676
  off(event: 'thermal-state-change', listener: Function): this;
7677
+ /**
7678
+ * @platform darwin
7679
+ */
7264
7680
  once(event: 'thermal-state-change', listener: Function): this;
7681
+ /**
7682
+ * @platform darwin
7683
+ */
7265
7684
  addListener(event: 'thermal-state-change', listener: Function): this;
7685
+ /**
7686
+ * @platform darwin
7687
+ */
7266
7688
  removeListener(event: 'thermal-state-change', listener: Function): this;
7267
7689
  /**
7268
7690
  * Emitted as soon as the systems screen is unlocked.
@@ -7270,9 +7692,21 @@ declare namespace Electron {
7270
7692
  * @platform darwin,win32
7271
7693
  */
7272
7694
  on(event: 'unlock-screen', listener: Function): this;
7695
+ /**
7696
+ * @platform darwin,win32
7697
+ */
7273
7698
  off(event: 'unlock-screen', listener: Function): this;
7699
+ /**
7700
+ * @platform darwin,win32
7701
+ */
7274
7702
  once(event: 'unlock-screen', listener: Function): this;
7703
+ /**
7704
+ * @platform darwin,win32
7705
+ */
7275
7706
  addListener(event: 'unlock-screen', listener: Function): this;
7707
+ /**
7708
+ * @platform darwin,win32
7709
+ */
7276
7710
  removeListener(event: 'unlock-screen', listener: Function): this;
7277
7711
  /**
7278
7712
  * Emitted when a login session is activated. See documentation for more
@@ -7281,9 +7715,21 @@ declare namespace Electron {
7281
7715
  * @platform darwin
7282
7716
  */
7283
7717
  on(event: 'user-did-become-active', listener: Function): this;
7718
+ /**
7719
+ * @platform darwin
7720
+ */
7284
7721
  off(event: 'user-did-become-active', listener: Function): this;
7722
+ /**
7723
+ * @platform darwin
7724
+ */
7285
7725
  once(event: 'user-did-become-active', listener: Function): this;
7726
+ /**
7727
+ * @platform darwin
7728
+ */
7286
7729
  addListener(event: 'user-did-become-active', listener: Function): this;
7730
+ /**
7731
+ * @platform darwin
7732
+ */
7287
7733
  removeListener(event: 'user-did-become-active', listener: Function): this;
7288
7734
  /**
7289
7735
  * Emitted when a login session is deactivated. See documentation for more
@@ -7292,9 +7738,21 @@ declare namespace Electron {
7292
7738
  * @platform darwin
7293
7739
  */
7294
7740
  on(event: 'user-did-resign-active', listener: Function): this;
7741
+ /**
7742
+ * @platform darwin
7743
+ */
7295
7744
  off(event: 'user-did-resign-active', listener: Function): this;
7745
+ /**
7746
+ * @platform darwin
7747
+ */
7296
7748
  once(event: 'user-did-resign-active', listener: Function): this;
7749
+ /**
7750
+ * @platform darwin
7751
+ */
7297
7752
  addListener(event: 'user-did-resign-active', listener: Function): this;
7753
+ /**
7754
+ * @platform darwin
7755
+ */
7298
7756
  removeListener(event: 'user-did-resign-active', listener: Function): this;
7299
7757
  /**
7300
7758
  * The system's current thermal state. Can be `unknown`, `nominal`, `fair`,
@@ -7888,12 +8346,24 @@ declare namespace Electron {
7888
8346
  */
7889
8347
  on(event: 'received-apns-notification', listener: (event: Event,
7890
8348
  userInfo: Record<string, any>) => void): this;
8349
+ /**
8350
+ * @platform darwin
8351
+ */
7891
8352
  off(event: 'received-apns-notification', listener: (event: Event,
7892
8353
  userInfo: Record<string, any>) => void): this;
8354
+ /**
8355
+ * @platform darwin
8356
+ */
7893
8357
  once(event: 'received-apns-notification', listener: (event: Event,
7894
8358
  userInfo: Record<string, any>) => void): this;
8359
+ /**
8360
+ * @platform darwin
8361
+ */
7895
8362
  addListener(event: 'received-apns-notification', listener: (event: Event,
7896
8363
  userInfo: Record<string, any>) => void): this;
8364
+ /**
8365
+ * @platform darwin
8366
+ */
7897
8367
  removeListener(event: 'received-apns-notification', listener: (event: Event,
7898
8368
  userInfo: Record<string, any>) => void): this;
7899
8369
  /**
@@ -9484,21 +9954,33 @@ declare namespace Electron {
9484
9954
  * The new RGBA color the user assigned to be their system accent color.
9485
9955
  */
9486
9956
  newColor: string) => void): this;
9957
+ /**
9958
+ * @platform win32
9959
+ */
9487
9960
  off(event: 'accent-color-changed', listener: (event: Event,
9488
9961
  /**
9489
9962
  * The new RGBA color the user assigned to be their system accent color.
9490
9963
  */
9491
9964
  newColor: string) => void): this;
9965
+ /**
9966
+ * @platform win32
9967
+ */
9492
9968
  once(event: 'accent-color-changed', listener: (event: Event,
9493
9969
  /**
9494
9970
  * The new RGBA color the user assigned to be their system accent color.
9495
9971
  */
9496
9972
  newColor: string) => void): this;
9973
+ /**
9974
+ * @platform win32
9975
+ */
9497
9976
  addListener(event: 'accent-color-changed', listener: (event: Event,
9498
9977
  /**
9499
9978
  * The new RGBA color the user assigned to be their system accent color.
9500
9979
  */
9501
9980
  newColor: string) => void): this;
9981
+ /**
9982
+ * @platform win32
9983
+ */
9502
9984
  removeListener(event: 'accent-color-changed', listener: (event: Event,
9503
9985
  /**
9504
9986
  * The new RGBA color the user assigned to be their system accent color.
@@ -9508,9 +9990,21 @@ declare namespace Electron {
9508
9990
  * @platform win32
9509
9991
  */
9510
9992
  on(event: 'color-changed', listener: (event: Event) => void): this;
9993
+ /**
9994
+ * @platform win32
9995
+ */
9511
9996
  off(event: 'color-changed', listener: (event: Event) => void): this;
9997
+ /**
9998
+ * @platform win32
9999
+ */
9512
10000
  once(event: 'color-changed', listener: (event: Event) => void): this;
10001
+ /**
10002
+ * @platform win32
10003
+ */
9513
10004
  addListener(event: 'color-changed', listener: (event: Event) => void): this;
10005
+ /**
10006
+ * @platform win32
10007
+ */
9514
10008
  removeListener(event: 'color-changed', listener: (event: Event) => void): this;
9515
10009
  /**
9516
10010
  * A promise that resolves with `true` if consent was granted and `false` if it was
@@ -10289,20 +10783,44 @@ declare namespace Electron {
10289
10783
  * @platform win32
10290
10784
  */
10291
10785
  on(event: 'balloon-click', listener: Function): this;
10786
+ /**
10787
+ * @platform win32
10788
+ */
10292
10789
  off(event: 'balloon-click', listener: Function): this;
10790
+ /**
10791
+ * @platform win32
10792
+ */
10293
10793
  once(event: 'balloon-click', listener: Function): this;
10294
- addListener(event: 'balloon-click', listener: Function): this;
10295
- removeListener(event: 'balloon-click', listener: Function): this;
10296
10794
  /**
10297
- * Emitted when the tray balloon is closed because of timeout or user manually
10298
- * closes it.
10299
- *
10795
+ * @platform win32
10796
+ */
10797
+ addListener(event: 'balloon-click', listener: Function): this;
10798
+ /**
10799
+ * @platform win32
10800
+ */
10801
+ removeListener(event: 'balloon-click', listener: Function): this;
10802
+ /**
10803
+ * Emitted when the tray balloon is closed because of timeout or user manually
10804
+ * closes it.
10805
+ *
10300
10806
  * @platform win32
10301
10807
  */
10302
10808
  on(event: 'balloon-closed', listener: Function): this;
10809
+ /**
10810
+ * @platform win32
10811
+ */
10303
10812
  off(event: 'balloon-closed', listener: Function): this;
10813
+ /**
10814
+ * @platform win32
10815
+ */
10304
10816
  once(event: 'balloon-closed', listener: Function): this;
10817
+ /**
10818
+ * @platform win32
10819
+ */
10305
10820
  addListener(event: 'balloon-closed', listener: Function): this;
10821
+ /**
10822
+ * @platform win32
10823
+ */
10306
10824
  removeListener(event: 'balloon-closed', listener: Function): this;
10307
10825
  /**
10308
10826
  * Emitted when the tray balloon shows.
@@ -10310,9 +10828,21 @@ declare namespace Electron {
10310
10828
  * @platform win32
10311
10829
  */
10312
10830
  on(event: 'balloon-show', listener: Function): this;
10831
+ /**
10832
+ * @platform win32
10833
+ */
10313
10834
  off(event: 'balloon-show', listener: Function): this;
10835
+ /**
10836
+ * @platform win32
10837
+ */
10314
10838
  once(event: 'balloon-show', listener: Function): this;
10839
+ /**
10840
+ * @platform win32
10841
+ */
10315
10842
  addListener(event: 'balloon-show', listener: Function): this;
10843
+ /**
10844
+ * @platform win32
10845
+ */
10316
10846
  removeListener(event: 'balloon-show', listener: Function): this;
10317
10847
  /**
10318
10848
  * Emitted when the tray icon is clicked.
@@ -10375,21 +10905,33 @@ declare namespace Electron {
10375
10905
  * The bounds of tray icon.
10376
10906
  */
10377
10907
  bounds: Rectangle) => void): this;
10908
+ /**
10909
+ * @platform darwin,win32
10910
+ */
10378
10911
  off(event: 'double-click', listener: (event: KeyboardEvent,
10379
10912
  /**
10380
10913
  * The bounds of tray icon.
10381
10914
  */
10382
10915
  bounds: Rectangle) => void): this;
10916
+ /**
10917
+ * @platform darwin,win32
10918
+ */
10383
10919
  once(event: 'double-click', listener: (event: KeyboardEvent,
10384
10920
  /**
10385
10921
  * The bounds of tray icon.
10386
10922
  */
10387
10923
  bounds: Rectangle) => void): this;
10924
+ /**
10925
+ * @platform darwin,win32
10926
+ */
10388
10927
  addListener(event: 'double-click', listener: (event: KeyboardEvent,
10389
10928
  /**
10390
10929
  * The bounds of tray icon.
10391
10930
  */
10392
10931
  bounds: Rectangle) => void): this;
10932
+ /**
10933
+ * @platform darwin,win32
10934
+ */
10393
10935
  removeListener(event: 'double-click', listener: (event: KeyboardEvent,
10394
10936
  /**
10395
10937
  * The bounds of tray icon.
@@ -10401,9 +10943,21 @@ declare namespace Electron {
10401
10943
  * @platform darwin
10402
10944
  */
10403
10945
  on(event: 'drag-end', listener: Function): this;
10946
+ /**
10947
+ * @platform darwin
10948
+ */
10404
10949
  off(event: 'drag-end', listener: Function): this;
10950
+ /**
10951
+ * @platform darwin
10952
+ */
10405
10953
  once(event: 'drag-end', listener: Function): this;
10954
+ /**
10955
+ * @platform darwin
10956
+ */
10406
10957
  addListener(event: 'drag-end', listener: Function): this;
10958
+ /**
10959
+ * @platform darwin
10960
+ */
10407
10961
  removeListener(event: 'drag-end', listener: Function): this;
10408
10962
  /**
10409
10963
  * Emitted when a drag operation enters the tray icon.
@@ -10411,9 +10965,21 @@ declare namespace Electron {
10411
10965
  * @platform darwin
10412
10966
  */
10413
10967
  on(event: 'drag-enter', listener: Function): this;
10968
+ /**
10969
+ * @platform darwin
10970
+ */
10414
10971
  off(event: 'drag-enter', listener: Function): this;
10972
+ /**
10973
+ * @platform darwin
10974
+ */
10415
10975
  once(event: 'drag-enter', listener: Function): this;
10976
+ /**
10977
+ * @platform darwin
10978
+ */
10416
10979
  addListener(event: 'drag-enter', listener: Function): this;
10980
+ /**
10981
+ * @platform darwin
10982
+ */
10417
10983
  removeListener(event: 'drag-enter', listener: Function): this;
10418
10984
  /**
10419
10985
  * Emitted when a drag operation exits the tray icon.
@@ -10421,9 +10987,21 @@ declare namespace Electron {
10421
10987
  * @platform darwin
10422
10988
  */
10423
10989
  on(event: 'drag-leave', listener: Function): this;
10990
+ /**
10991
+ * @platform darwin
10992
+ */
10424
10993
  off(event: 'drag-leave', listener: Function): this;
10994
+ /**
10995
+ * @platform darwin
10996
+ */
10425
10997
  once(event: 'drag-leave', listener: Function): this;
10998
+ /**
10999
+ * @platform darwin
11000
+ */
10426
11001
  addListener(event: 'drag-leave', listener: Function): this;
11002
+ /**
11003
+ * @platform darwin
11004
+ */
10427
11005
  removeListener(event: 'drag-leave', listener: Function): this;
10428
11006
  /**
10429
11007
  * Emitted when any dragged items are dropped on the tray icon.
@@ -10431,9 +11009,21 @@ declare namespace Electron {
10431
11009
  * @platform darwin
10432
11010
  */
10433
11011
  on(event: 'drop', listener: Function): this;
11012
+ /**
11013
+ * @platform darwin
11014
+ */
10434
11015
  off(event: 'drop', listener: Function): this;
11016
+ /**
11017
+ * @platform darwin
11018
+ */
10435
11019
  once(event: 'drop', listener: Function): this;
11020
+ /**
11021
+ * @platform darwin
11022
+ */
10436
11023
  addListener(event: 'drop', listener: Function): this;
11024
+ /**
11025
+ * @platform darwin
11026
+ */
10437
11027
  removeListener(event: 'drop', listener: Function): this;
10438
11028
  /**
10439
11029
  * Emitted when dragged files are dropped in the tray icon.
@@ -10445,21 +11035,33 @@ declare namespace Electron {
10445
11035
  * The paths of the dropped files.
10446
11036
  */
10447
11037
  files: string[]) => void): this;
11038
+ /**
11039
+ * @platform darwin
11040
+ */
10448
11041
  off(event: 'drop-files', listener: (event: Event,
10449
11042
  /**
10450
11043
  * The paths of the dropped files.
10451
11044
  */
10452
11045
  files: string[]) => void): this;
11046
+ /**
11047
+ * @platform darwin
11048
+ */
10453
11049
  once(event: 'drop-files', listener: (event: Event,
10454
11050
  /**
10455
11051
  * The paths of the dropped files.
10456
11052
  */
10457
11053
  files: string[]) => void): this;
11054
+ /**
11055
+ * @platform darwin
11056
+ */
10458
11057
  addListener(event: 'drop-files', listener: (event: Event,
10459
11058
  /**
10460
11059
  * The paths of the dropped files.
10461
11060
  */
10462
11061
  files: string[]) => void): this;
11062
+ /**
11063
+ * @platform darwin
11064
+ */
10463
11065
  removeListener(event: 'drop-files', listener: (event: Event,
10464
11066
  /**
10465
11067
  * The paths of the dropped files.
@@ -10475,21 +11077,33 @@ declare namespace Electron {
10475
11077
  * the dropped text string.
10476
11078
  */
10477
11079
  text: string) => void): this;
11080
+ /**
11081
+ * @platform darwin
11082
+ */
10478
11083
  off(event: 'drop-text', listener: (event: Event,
10479
11084
  /**
10480
11085
  * the dropped text string.
10481
11086
  */
10482
11087
  text: string) => void): this;
11088
+ /**
11089
+ * @platform darwin
11090
+ */
10483
11091
  once(event: 'drop-text', listener: (event: Event,
10484
11092
  /**
10485
11093
  * the dropped text string.
10486
11094
  */
10487
11095
  text: string) => void): this;
11096
+ /**
11097
+ * @platform darwin
11098
+ */
10488
11099
  addListener(event: 'drop-text', listener: (event: Event,
10489
11100
  /**
10490
11101
  * the dropped text string.
10491
11102
  */
10492
11103
  text: string) => void): this;
11104
+ /**
11105
+ * @platform darwin
11106
+ */
10493
11107
  removeListener(event: 'drop-text', listener: (event: Event,
10494
11108
  /**
10495
11109
  * the dropped text string.
@@ -10505,21 +11119,33 @@ declare namespace Electron {
10505
11119
  * The bounds of tray icon.
10506
11120
  */
10507
11121
  bounds: Rectangle) => void): this;
11122
+ /**
11123
+ * @platform win32
11124
+ */
10508
11125
  off(event: 'middle-click', listener: (event: KeyboardEvent,
10509
11126
  /**
10510
11127
  * The bounds of tray icon.
10511
11128
  */
10512
11129
  bounds: Rectangle) => void): this;
11130
+ /**
11131
+ * @platform win32
11132
+ */
10513
11133
  once(event: 'middle-click', listener: (event: KeyboardEvent,
10514
11134
  /**
10515
11135
  * The bounds of tray icon.
10516
11136
  */
10517
11137
  bounds: Rectangle) => void): this;
11138
+ /**
11139
+ * @platform win32
11140
+ */
10518
11141
  addListener(event: 'middle-click', listener: (event: KeyboardEvent,
10519
11142
  /**
10520
11143
  * The bounds of tray icon.
10521
11144
  */
10522
11145
  bounds: Rectangle) => void): this;
11146
+ /**
11147
+ * @platform win32
11148
+ */
10523
11149
  removeListener(event: 'middle-click', listener: (event: KeyboardEvent,
10524
11150
  /**
10525
11151
  * The bounds of tray icon.
@@ -10535,21 +11161,33 @@ declare namespace Electron {
10535
11161
  * The position of the event.
10536
11162
  */
10537
11163
  position: Point) => void): this;
11164
+ /**
11165
+ * @platform darwin
11166
+ */
10538
11167
  off(event: 'mouse-down', listener: (event: KeyboardEvent,
10539
11168
  /**
10540
11169
  * The position of the event.
10541
11170
  */
10542
11171
  position: Point) => void): this;
11172
+ /**
11173
+ * @platform darwin
11174
+ */
10543
11175
  once(event: 'mouse-down', listener: (event: KeyboardEvent,
10544
11176
  /**
10545
11177
  * The position of the event.
10546
11178
  */
10547
11179
  position: Point) => void): this;
11180
+ /**
11181
+ * @platform darwin
11182
+ */
10548
11183
  addListener(event: 'mouse-down', listener: (event: KeyboardEvent,
10549
11184
  /**
10550
11185
  * The position of the event.
10551
11186
  */
10552
11187
  position: Point) => void): this;
11188
+ /**
11189
+ * @platform darwin
11190
+ */
10553
11191
  removeListener(event: 'mouse-down', listener: (event: KeyboardEvent,
10554
11192
  /**
10555
11193
  * The position of the event.
@@ -10565,21 +11203,33 @@ declare namespace Electron {
10565
11203
  * The position of the event.
10566
11204
  */
10567
11205
  position: Point) => void): this;
11206
+ /**
11207
+ * @platform darwin,win32
11208
+ */
10568
11209
  off(event: 'mouse-enter', listener: (event: KeyboardEvent,
10569
11210
  /**
10570
11211
  * The position of the event.
10571
11212
  */
10572
11213
  position: Point) => void): this;
11214
+ /**
11215
+ * @platform darwin,win32
11216
+ */
10573
11217
  once(event: 'mouse-enter', listener: (event: KeyboardEvent,
10574
11218
  /**
10575
11219
  * The position of the event.
10576
11220
  */
10577
11221
  position: Point) => void): this;
11222
+ /**
11223
+ * @platform darwin,win32
11224
+ */
10578
11225
  addListener(event: 'mouse-enter', listener: (event: KeyboardEvent,
10579
11226
  /**
10580
11227
  * The position of the event.
10581
11228
  */
10582
11229
  position: Point) => void): this;
11230
+ /**
11231
+ * @platform darwin,win32
11232
+ */
10583
11233
  removeListener(event: 'mouse-enter', listener: (event: KeyboardEvent,
10584
11234
  /**
10585
11235
  * The position of the event.
@@ -10595,21 +11245,33 @@ declare namespace Electron {
10595
11245
  * The position of the event.
10596
11246
  */
10597
11247
  position: Point) => void): this;
11248
+ /**
11249
+ * @platform darwin,win32
11250
+ */
10598
11251
  off(event: 'mouse-leave', listener: (event: KeyboardEvent,
10599
11252
  /**
10600
11253
  * The position of the event.
10601
11254
  */
10602
11255
  position: Point) => void): this;
11256
+ /**
11257
+ * @platform darwin,win32
11258
+ */
10603
11259
  once(event: 'mouse-leave', listener: (event: KeyboardEvent,
10604
11260
  /**
10605
11261
  * The position of the event.
10606
11262
  */
10607
11263
  position: Point) => void): this;
11264
+ /**
11265
+ * @platform darwin,win32
11266
+ */
10608
11267
  addListener(event: 'mouse-leave', listener: (event: KeyboardEvent,
10609
11268
  /**
10610
11269
  * The position of the event.
10611
11270
  */
10612
11271
  position: Point) => void): this;
11272
+ /**
11273
+ * @platform darwin,win32
11274
+ */
10613
11275
  removeListener(event: 'mouse-leave', listener: (event: KeyboardEvent,
10614
11276
  /**
10615
11277
  * The position of the event.
@@ -10625,21 +11287,33 @@ declare namespace Electron {
10625
11287
  * The position of the event.
10626
11288
  */
10627
11289
  position: Point) => void): this;
11290
+ /**
11291
+ * @platform darwin,win32
11292
+ */
10628
11293
  off(event: 'mouse-move', listener: (event: KeyboardEvent,
10629
11294
  /**
10630
11295
  * The position of the event.
10631
11296
  */
10632
11297
  position: Point) => void): this;
11298
+ /**
11299
+ * @platform darwin,win32
11300
+ */
10633
11301
  once(event: 'mouse-move', listener: (event: KeyboardEvent,
10634
11302
  /**
10635
11303
  * The position of the event.
10636
11304
  */
10637
11305
  position: Point) => void): this;
11306
+ /**
11307
+ * @platform darwin,win32
11308
+ */
10638
11309
  addListener(event: 'mouse-move', listener: (event: KeyboardEvent,
10639
11310
  /**
10640
11311
  * The position of the event.
10641
11312
  */
10642
11313
  position: Point) => void): this;
11314
+ /**
11315
+ * @platform darwin,win32
11316
+ */
10643
11317
  removeListener(event: 'mouse-move', listener: (event: KeyboardEvent,
10644
11318
  /**
10645
11319
  * The position of the event.
@@ -10658,21 +11332,33 @@ declare namespace Electron {
10658
11332
  * The position of the event.
10659
11333
  */
10660
11334
  position: Point) => void): this;
11335
+ /**
11336
+ * @platform darwin
11337
+ */
10661
11338
  off(event: 'mouse-up', listener: (event: KeyboardEvent,
10662
11339
  /**
10663
11340
  * The position of the event.
10664
11341
  */
10665
11342
  position: Point) => void): this;
11343
+ /**
11344
+ * @platform darwin
11345
+ */
10666
11346
  once(event: 'mouse-up', listener: (event: KeyboardEvent,
10667
11347
  /**
10668
11348
  * The position of the event.
10669
11349
  */
10670
11350
  position: Point) => void): this;
11351
+ /**
11352
+ * @platform darwin
11353
+ */
10671
11354
  addListener(event: 'mouse-up', listener: (event: KeyboardEvent,
10672
11355
  /**
10673
11356
  * The position of the event.
10674
11357
  */
10675
11358
  position: Point) => void): this;
11359
+ /**
11360
+ * @platform darwin
11361
+ */
10676
11362
  removeListener(event: 'mouse-up', listener: (event: KeyboardEvent,
10677
11363
  /**
10678
11364
  * The position of the event.
@@ -10688,21 +11374,33 @@ declare namespace Electron {
10688
11374
  * The bounds of tray icon.
10689
11375
  */
10690
11376
  bounds: Rectangle) => void): this;
11377
+ /**
11378
+ * @platform darwin,win32
11379
+ */
10691
11380
  off(event: 'right-click', listener: (event: KeyboardEvent,
10692
11381
  /**
10693
11382
  * The bounds of tray icon.
10694
11383
  */
10695
11384
  bounds: Rectangle) => void): this;
11385
+ /**
11386
+ * @platform darwin,win32
11387
+ */
10696
11388
  once(event: 'right-click', listener: (event: KeyboardEvent,
10697
11389
  /**
10698
11390
  * The bounds of tray icon.
10699
11391
  */
10700
11392
  bounds: Rectangle) => void): this;
11393
+ /**
11394
+ * @platform darwin,win32
11395
+ */
10701
11396
  addListener(event: 'right-click', listener: (event: KeyboardEvent,
10702
11397
  /**
10703
11398
  * The bounds of tray icon.
10704
11399
  */
10705
11400
  bounds: Rectangle) => void): this;
11401
+ /**
11402
+ * @platform darwin,win32
11403
+ */
10706
11404
  removeListener(event: 'right-click', listener: (event: KeyboardEvent,
10707
11405
  /**
10708
11406
  * The bounds of tray icon.
@@ -11303,12 +12001,24 @@ declare namespace Electron {
11303
12001
  */
11304
12002
  on(event: 'crashed', listener: (event: Event,
11305
12003
  killed: boolean) => void): this;
12004
+ /**
12005
+ * @deprecated
12006
+ */
11306
12007
  off(event: 'crashed', listener: (event: Event,
11307
12008
  killed: boolean) => void): this;
12009
+ /**
12010
+ * @deprecated
12011
+ */
11308
12012
  once(event: 'crashed', listener: (event: Event,
11309
12013
  killed: boolean) => void): this;
12014
+ /**
12015
+ * @deprecated
12016
+ */
11310
12017
  addListener(event: 'crashed', listener: (event: Event,
11311
12018
  killed: boolean) => void): this;
12019
+ /**
12020
+ * @deprecated
12021
+ */
11312
12022
  removeListener(event: 'crashed', listener: (event: Event,
11313
12023
  killed: boolean) => void): this;
11314
12024
  /**
@@ -14516,6 +15226,9 @@ declare namespace Electron {
14516
15226
  * @deprecated
14517
15227
  */
14518
15228
  addEventListener(event: 'crashed', listener: (event: DOMEvent) => void, useCapture?: boolean): this;
15229
+ /**
15230
+ * @deprecated
15231
+ */
14519
15232
  removeEventListener(event: 'crashed', listener: (event: DOMEvent) => void): this;
14520
15233
  /**
14521
15234
  * Fired when the renderer process unexpectedly disappears. This is normally
@@ -17812,27 +18525,6 @@ declare namespace Electron {
17812
18525
  height?: number;
17813
18526
  }
17814
18527
 
17815
- interface TitleBarOverlayOptions {
17816
- /**
17817
- * The CSS color of the Window Controls Overlay when enabled.
17818
- *
17819
- * @platform win32
17820
- */
17821
- color?: string;
17822
- /**
17823
- * The CSS color of the symbols on the Window Controls Overlay when enabled.
17824
- *
17825
- * @platform win32
17826
- */
17827
- symbolColor?: string;
17828
- /**
17829
- * The height of the title bar and Window Controls Overlay in pixels.
17830
- *
17831
- * @platform darwin,win32
17832
- */
17833
- height?: number;
17834
- }
17835
-
17836
18528
  interface TitleOptions {
17837
18529
  /**
17838
18530
  * The font family variant to display, can be `monospaced` or `monospacedDigit`.
@@ -18749,44 +19441,6 @@ declare namespace Electron {
18749
19441
  name: string;
18750
19442
  }
18751
19443
 
18752
- interface RemoteMainInterface {
18753
- app: App;
18754
- autoUpdater: AutoUpdater;
18755
- BrowserView: typeof BrowserView;
18756
- BrowserWindow: typeof BrowserWindow;
18757
- clipboard: Clipboard;
18758
- contentTracing: ContentTracing;
18759
- crashReporter: CrashReporter;
18760
- desktopCapturer: DesktopCapturer;
18761
- dialog: Dialog;
18762
- globalShortcut: GlobalShortcut;
18763
- inAppPurchase: InAppPurchase;
18764
- ipcMain: IpcMain;
18765
- Menu: typeof Menu;
18766
- MenuItem: typeof MenuItem;
18767
- MessageChannelMain: typeof MessageChannelMain;
18768
- nativeImage: typeof NativeImage;
18769
- nativeTheme: NativeTheme;
18770
- net: Net;
18771
- netLog: NetLog;
18772
- Notification: typeof Notification;
18773
- powerMonitor: PowerMonitor;
18774
- powerSaveBlocker: PowerSaveBlocker;
18775
- protocol: Protocol;
18776
- pushNotifications: PushNotifications;
18777
- safeStorage: SafeStorage;
18778
- screen: Screen;
18779
- session: typeof Session;
18780
- ShareMenu: typeof ShareMenu;
18781
- shell: Shell;
18782
- systemPreferences: SystemPreferences;
18783
- TouchBar: typeof TouchBar;
18784
- Tray: typeof Tray;
18785
- utilityProcess: typeof UtilityProcess;
18786
- webContents: typeof WebContents;
18787
- webFrameMain: typeof WebFrameMain;
18788
- }
18789
-
18790
19444
 
18791
19445
 
18792
19446
  namespace Common {
@@ -18938,7 +19592,6 @@ declare namespace Electron {
18938
19592
  type Streams = Electron.Streams;
18939
19593
  type SystemMemoryInfo = Electron.SystemMemoryInfo;
18940
19594
  type TitleBarOverlay = Electron.TitleBarOverlay;
18941
- type TitleBarOverlayOptions = Electron.TitleBarOverlayOptions;
18942
19595
  type TitleOptions = Electron.TitleOptions;
18943
19596
  type ToBitmapOptions = Electron.ToBitmapOptions;
18944
19597
  type ToDataURLOptions = Electron.ToDataURLOptions;
@@ -18981,8 +19634,8 @@ declare namespace Electron {
18981
19634
  type PageRanges = Electron.PageRanges;
18982
19635
  type Params = Electron.Params;
18983
19636
  type Video = Electron.Video;
18984
- type BluetoothDevice = Electron.BluetoothDevice;
18985
19637
  type BrowserWindowConstructorOptions = Electron.BrowserWindowConstructorOptions;
19638
+ type BluetoothDevice = Electron.BluetoothDevice;
18986
19639
  type Certificate = Electron.Certificate;
18987
19640
  type CertificatePrincipal = Electron.CertificatePrincipal;
18988
19641
  type Cookie = Electron.Cookie;
@@ -19267,7 +19920,6 @@ declare namespace Electron {
19267
19920
  type Streams = Electron.Streams;
19268
19921
  type SystemMemoryInfo = Electron.SystemMemoryInfo;
19269
19922
  type TitleBarOverlay = Electron.TitleBarOverlay;
19270
- type TitleBarOverlayOptions = Electron.TitleBarOverlayOptions;
19271
19923
  type TitleOptions = Electron.TitleOptions;
19272
19924
  type ToBitmapOptions = Electron.ToBitmapOptions;
19273
19925
  type ToDataURLOptions = Electron.ToDataURLOptions;
@@ -19310,8 +19962,8 @@ declare namespace Electron {
19310
19962
  type PageRanges = Electron.PageRanges;
19311
19963
  type Params = Electron.Params;
19312
19964
  type Video = Electron.Video;
19313
- type BluetoothDevice = Electron.BluetoothDevice;
19314
19965
  type BrowserWindowConstructorOptions = Electron.BrowserWindowConstructorOptions;
19966
+ type BluetoothDevice = Electron.BluetoothDevice;
19315
19967
  type Certificate = Electron.Certificate;
19316
19968
  type CertificatePrincipal = Electron.CertificatePrincipal;
19317
19969
  type Cookie = Electron.Cookie;
@@ -19530,7 +20182,6 @@ declare namespace Electron {
19530
20182
  type Streams = Electron.Streams;
19531
20183
  type SystemMemoryInfo = Electron.SystemMemoryInfo;
19532
20184
  type TitleBarOverlay = Electron.TitleBarOverlay;
19533
- type TitleBarOverlayOptions = Electron.TitleBarOverlayOptions;
19534
20185
  type TitleOptions = Electron.TitleOptions;
19535
20186
  type ToBitmapOptions = Electron.ToBitmapOptions;
19536
20187
  type ToDataURLOptions = Electron.ToDataURLOptions;
@@ -19573,8 +20224,267 @@ declare namespace Electron {
19573
20224
  type PageRanges = Electron.PageRanges;
19574
20225
  type Params = Electron.Params;
19575
20226
  type Video = Electron.Video;
20227
+ type BrowserWindowConstructorOptions = Electron.BrowserWindowConstructorOptions;
19576
20228
  type BluetoothDevice = Electron.BluetoothDevice;
20229
+ type Certificate = Electron.Certificate;
20230
+ type CertificatePrincipal = Electron.CertificatePrincipal;
20231
+ type Cookie = Electron.Cookie;
20232
+ type CPUUsage = Electron.CPUUsage;
20233
+ type CrashReport = Electron.CrashReport;
20234
+ type CustomScheme = Electron.CustomScheme;
20235
+ type DesktopCapturerSource = Electron.DesktopCapturerSource;
20236
+ type Display = Electron.Display;
20237
+ type Extension = Electron.Extension;
20238
+ type ExtensionInfo = Electron.ExtensionInfo;
20239
+ type FileFilter = Electron.FileFilter;
20240
+ type FilePathWithHeaders = Electron.FilePathWithHeaders;
20241
+ type GPUFeatureStatus = Electron.GPUFeatureStatus;
20242
+ type HIDDevice = Electron.HIDDevice;
20243
+ type InputEvent = Electron.InputEvent;
20244
+ type IOCounters = Electron.IOCounters;
20245
+ type IpcMainEvent = Electron.IpcMainEvent;
20246
+ type IpcMainInvokeEvent = Electron.IpcMainInvokeEvent;
20247
+ type IpcRendererEvent = Electron.IpcRendererEvent;
20248
+ type JumpListCategory = Electron.JumpListCategory;
20249
+ type JumpListItem = Electron.JumpListItem;
20250
+ type KeyboardEvent = Electron.KeyboardEvent;
20251
+ type KeyboardInputEvent = Electron.KeyboardInputEvent;
20252
+ type MemoryInfo = Electron.MemoryInfo;
20253
+ type MemoryUsageDetails = Electron.MemoryUsageDetails;
20254
+ type MimeTypedBuffer = Electron.MimeTypedBuffer;
20255
+ type MouseInputEvent = Electron.MouseInputEvent;
20256
+ type MouseWheelInputEvent = Electron.MouseWheelInputEvent;
20257
+ type NotificationAction = Electron.NotificationAction;
20258
+ type NotificationResponse = Electron.NotificationResponse;
20259
+ type PaymentDiscount = Electron.PaymentDiscount;
20260
+ type Point = Electron.Point;
20261
+ type PostBody = Electron.PostBody;
20262
+ type PrinterInfo = Electron.PrinterInfo;
20263
+ type ProcessMemoryInfo = Electron.ProcessMemoryInfo;
20264
+ type ProcessMetric = Electron.ProcessMetric;
20265
+ type Product = Electron.Product;
20266
+ type ProductDiscount = Electron.ProductDiscount;
20267
+ type ProductSubscriptionPeriod = Electron.ProductSubscriptionPeriod;
20268
+ type ProtocolRequest = Electron.ProtocolRequest;
20269
+ type ProtocolResponse = Electron.ProtocolResponse;
20270
+ type ProtocolResponseUploadData = Electron.ProtocolResponseUploadData;
20271
+ type Rectangle = Electron.Rectangle;
20272
+ type Referrer = Electron.Referrer;
20273
+ type RenderProcessGoneDetails = Electron.RenderProcessGoneDetails;
20274
+ type ResolvedEndpoint = Electron.ResolvedEndpoint;
20275
+ type ResolvedHost = Electron.ResolvedHost;
20276
+ type ScrubberItem = Electron.ScrubberItem;
20277
+ type SegmentedControlSegment = Electron.SegmentedControlSegment;
20278
+ type SerialPort = Electron.SerialPort;
20279
+ type ServiceWorkerInfo = Electron.ServiceWorkerInfo;
20280
+ type SharedWorkerInfo = Electron.SharedWorkerInfo;
20281
+ type SharingItem = Electron.SharingItem;
20282
+ type ShortcutDetails = Electron.ShortcutDetails;
20283
+ type Size = Electron.Size;
20284
+ type Task = Electron.Task;
20285
+ type ThumbarButton = Electron.ThumbarButton;
20286
+ type TraceCategoriesAndOptions = Electron.TraceCategoriesAndOptions;
20287
+ type TraceConfig = Electron.TraceConfig;
20288
+ type Transaction = Electron.Transaction;
20289
+ type UploadData = Electron.UploadData;
20290
+ type UploadFile = Electron.UploadFile;
20291
+ type UploadRawData = Electron.UploadRawData;
20292
+ type USBDevice = Electron.USBDevice;
20293
+ type UserDefaultTypes = Electron.UserDefaultTypes;
20294
+ type WebPreferences = Electron.WebPreferences;
20295
+ type WebRequestFilter = Electron.WebRequestFilter;
20296
+ type WebSource = Electron.WebSource;
20297
+ }
20298
+
20299
+ namespace Utility {
20300
+ type Event<Params extends object = {}> = Electron.Event<Params>;
20301
+ type ClientRequest = Electron.ClientRequest;
20302
+ type IncomingMessage = Electron.IncomingMessage;
20303
+ const net: Net;
20304
+ type Net = Electron.Net;
20305
+ type AboutPanelOptionsOptions = Electron.AboutPanelOptionsOptions;
20306
+ type AddRepresentationOptions = Electron.AddRepresentationOptions;
20307
+ type AdjustSelectionOptions = Electron.AdjustSelectionOptions;
20308
+ type AnimationSettings = Electron.AnimationSettings;
20309
+ type AppDetailsOptions = Electron.AppDetailsOptions;
20310
+ type ApplicationInfoForProtocolReturnValue = Electron.ApplicationInfoForProtocolReturnValue;
20311
+ type AuthenticationResponseDetails = Electron.AuthenticationResponseDetails;
20312
+ type AuthInfo = Electron.AuthInfo;
20313
+ type AutoResizeOptions = Electron.AutoResizeOptions;
20314
+ type BeforeSendResponse = Electron.BeforeSendResponse;
20315
+ type BitmapOptions = Electron.BitmapOptions;
20316
+ type BlinkMemoryInfo = Electron.BlinkMemoryInfo;
20317
+ type BluetoothPairingHandlerHandlerDetails = Electron.BluetoothPairingHandlerHandlerDetails;
20318
+ type BrowserViewConstructorOptions = Electron.BrowserViewConstructorOptions;
20319
+ type CallbackResponse = Electron.CallbackResponse;
20320
+ type CertificateTrustDialogOptions = Electron.CertificateTrustDialogOptions;
20321
+ type ClearCodeCachesOptions = Electron.ClearCodeCachesOptions;
20322
+ type ClearStorageDataOptions = Electron.ClearStorageDataOptions;
20323
+ type ClientRequestConstructorOptions = Electron.ClientRequestConstructorOptions;
20324
+ type CloseOpts = Electron.CloseOpts;
20325
+ type Config = Electron.Config;
20326
+ type ConfigureHostResolverOptions = Electron.ConfigureHostResolverOptions;
20327
+ type ConsoleMessageEvent = Electron.ConsoleMessageEvent;
20328
+ type ContextMenuEvent = Electron.ContextMenuEvent;
20329
+ type ContextMenuParams = Electron.ContextMenuParams;
20330
+ type ContinueActivityDetails = Electron.ContinueActivityDetails;
20331
+ type CookiesGetFilter = Electron.CookiesGetFilter;
20332
+ type CookiesSetDetails = Electron.CookiesSetDetails;
20333
+ type CrashReporterStartOptions = Electron.CrashReporterStartOptions;
20334
+ type CreateFromBitmapOptions = Electron.CreateFromBitmapOptions;
20335
+ type CreateFromBufferOptions = Electron.CreateFromBufferOptions;
20336
+ type CreateInterruptedDownloadOptions = Electron.CreateInterruptedDownloadOptions;
20337
+ type Data = Electron.Data;
20338
+ type DefaultFontFamily = Electron.DefaultFontFamily;
20339
+ type Details = Electron.Details;
20340
+ type DevicePermissionHandlerHandlerDetails = Electron.DevicePermissionHandlerHandlerDetails;
20341
+ type DevtoolsOpenUrlEvent = Electron.DevtoolsOpenUrlEvent;
20342
+ type DidChangeThemeColorEvent = Electron.DidChangeThemeColorEvent;
20343
+ type DidCreateWindowDetails = Electron.DidCreateWindowDetails;
20344
+ type DidFailLoadEvent = Electron.DidFailLoadEvent;
20345
+ type DidFrameFinishLoadEvent = Electron.DidFrameFinishLoadEvent;
20346
+ type DidFrameNavigateEvent = Electron.DidFrameNavigateEvent;
20347
+ type DidNavigateEvent = Electron.DidNavigateEvent;
20348
+ type DidNavigateInPageEvent = Electron.DidNavigateInPageEvent;
20349
+ type DidRedirectNavigationEvent = Electron.DidRedirectNavigationEvent;
20350
+ type DidStartNavigationEvent = Electron.DidStartNavigationEvent;
20351
+ type DisplayBalloonOptions = Electron.DisplayBalloonOptions;
20352
+ type DisplayMediaRequestHandlerHandlerRequest = Electron.DisplayMediaRequestHandlerHandlerRequest;
20353
+ type DownloadURLOptions = Electron.DownloadURLOptions;
20354
+ type EnableNetworkEmulationOptions = Electron.EnableNetworkEmulationOptions;
20355
+ type FeedURLOptions = Electron.FeedURLOptions;
20356
+ type FileIconOptions = Electron.FileIconOptions;
20357
+ type FindInPageOptions = Electron.FindInPageOptions;
20358
+ type FocusOptions = Electron.FocusOptions;
20359
+ type ForkOptions = Electron.ForkOptions;
20360
+ type FoundInPageEvent = Electron.FoundInPageEvent;
20361
+ type FrameCreatedDetails = Electron.FrameCreatedDetails;
20362
+ type FromPartitionOptions = Electron.FromPartitionOptions;
20363
+ type FromPathOptions = Electron.FromPathOptions;
20364
+ type HandlerDetails = Electron.HandlerDetails;
20365
+ type HeadersReceivedResponse = Electron.HeadersReceivedResponse;
20366
+ type HeapStatistics = Electron.HeapStatistics;
20367
+ type HidDeviceAddedDetails = Electron.HidDeviceAddedDetails;
20368
+ type HidDeviceRemovedDetails = Electron.HidDeviceRemovedDetails;
20369
+ type HidDeviceRevokedDetails = Electron.HidDeviceRevokedDetails;
20370
+ type IgnoreMouseEventsOptions = Electron.IgnoreMouseEventsOptions;
20371
+ type ImportCertificateOptions = Electron.ImportCertificateOptions;
20372
+ type Info = Electron.Info;
20373
+ type Input = Electron.Input;
20374
+ type InsertCSSOptions = Electron.InsertCSSOptions;
20375
+ type IpcMessageEvent = Electron.IpcMessageEvent;
20376
+ type Item = Electron.Item;
20377
+ type JumpListSettings = Electron.JumpListSettings;
20378
+ type LoadCommitEvent = Electron.LoadCommitEvent;
20379
+ type LoadExtensionOptions = Electron.LoadExtensionOptions;
20380
+ type LoadFileOptions = Electron.LoadFileOptions;
20381
+ type LoadURLOptions = Electron.LoadURLOptions;
20382
+ type LoginItemSettings = Electron.LoginItemSettings;
20383
+ type LoginItemSettingsOptions = Electron.LoginItemSettingsOptions;
20384
+ type MenuItemConstructorOptions = Electron.MenuItemConstructorOptions;
20385
+ type MessageBoxOptions = Electron.MessageBoxOptions;
20386
+ type MessageBoxReturnValue = Electron.MessageBoxReturnValue;
20387
+ type MessageBoxSyncOptions = Electron.MessageBoxSyncOptions;
20388
+ type MessageDetails = Electron.MessageDetails;
20389
+ type MessageEvent = Electron.MessageEvent;
20390
+ type MoveToApplicationsFolderOptions = Electron.MoveToApplicationsFolderOptions;
20391
+ type NotificationConstructorOptions = Electron.NotificationConstructorOptions;
20392
+ type OnBeforeRedirectListenerDetails = Electron.OnBeforeRedirectListenerDetails;
20393
+ type OnBeforeRequestListenerDetails = Electron.OnBeforeRequestListenerDetails;
20394
+ type OnBeforeSendHeadersListenerDetails = Electron.OnBeforeSendHeadersListenerDetails;
20395
+ type OnCompletedListenerDetails = Electron.OnCompletedListenerDetails;
20396
+ type OnErrorOccurredListenerDetails = Electron.OnErrorOccurredListenerDetails;
20397
+ type OnHeadersReceivedListenerDetails = Electron.OnHeadersReceivedListenerDetails;
20398
+ type OnResponseStartedListenerDetails = Electron.OnResponseStartedListenerDetails;
20399
+ type OnSendHeadersListenerDetails = Electron.OnSendHeadersListenerDetails;
20400
+ type OpenDevToolsOptions = Electron.OpenDevToolsOptions;
20401
+ type OpenDialogOptions = Electron.OpenDialogOptions;
20402
+ type OpenDialogReturnValue = Electron.OpenDialogReturnValue;
20403
+ type OpenDialogSyncOptions = Electron.OpenDialogSyncOptions;
20404
+ type OpenExternalOptions = Electron.OpenExternalOptions;
20405
+ type Options = Electron.Options;
20406
+ type Opts = Electron.Opts;
20407
+ type PageFaviconUpdatedEvent = Electron.PageFaviconUpdatedEvent;
20408
+ type PageTitleUpdatedEvent = Electron.PageTitleUpdatedEvent;
20409
+ type Parameters = Electron.Parameters;
20410
+ type Payment = Electron.Payment;
20411
+ type PermissionCheckHandlerHandlerDetails = Electron.PermissionCheckHandlerHandlerDetails;
20412
+ type PermissionRequestHandlerHandlerDetails = Electron.PermissionRequestHandlerHandlerDetails;
20413
+ type PluginCrashedEvent = Electron.PluginCrashedEvent;
20414
+ type PopupOptions = Electron.PopupOptions;
20415
+ type PreconnectOptions = Electron.PreconnectOptions;
20416
+ type PrintToPDFOptions = Electron.PrintToPDFOptions;
20417
+ type Privileges = Electron.Privileges;
20418
+ type ProgressBarOptions = Electron.ProgressBarOptions;
20419
+ type Provider = Electron.Provider;
20420
+ type PurchaseProductOpts = Electron.PurchaseProductOpts;
20421
+ type ReadBookmark = Electron.ReadBookmark;
20422
+ type RegistrationCompletedDetails = Electron.RegistrationCompletedDetails;
20423
+ type RelaunchOptions = Electron.RelaunchOptions;
20424
+ type RenderProcessGoneEvent = Electron.RenderProcessGoneEvent;
20425
+ type Request = Electron.Request;
20426
+ type ResizeOptions = Electron.ResizeOptions;
20427
+ type ResolveHostOptions = Electron.ResolveHostOptions;
20428
+ type ResourceUsage = Electron.ResourceUsage;
20429
+ type Response = Electron.Response;
20430
+ type Result = Electron.Result;
20431
+ type SaveDialogOptions = Electron.SaveDialogOptions;
20432
+ type SaveDialogReturnValue = Electron.SaveDialogReturnValue;
20433
+ type SaveDialogSyncOptions = Electron.SaveDialogSyncOptions;
20434
+ type SelectHidDeviceDetails = Electron.SelectHidDeviceDetails;
20435
+ type SelectUsbDeviceDetails = Electron.SelectUsbDeviceDetails;
20436
+ type SerialPortRevokedDetails = Electron.SerialPortRevokedDetails;
20437
+ type Settings = Electron.Settings;
20438
+ type SourcesOptions = Electron.SourcesOptions;
20439
+ type SSLConfigConfig = Electron.SSLConfigConfig;
20440
+ type StartLoggingOptions = Electron.StartLoggingOptions;
20441
+ type Streams = Electron.Streams;
20442
+ type SystemMemoryInfo = Electron.SystemMemoryInfo;
20443
+ type TitleBarOverlay = Electron.TitleBarOverlay;
20444
+ type TitleOptions = Electron.TitleOptions;
20445
+ type ToBitmapOptions = Electron.ToBitmapOptions;
20446
+ type ToDataURLOptions = Electron.ToDataURLOptions;
20447
+ type ToPNGOptions = Electron.ToPNGOptions;
20448
+ type TouchBarButtonConstructorOptions = Electron.TouchBarButtonConstructorOptions;
20449
+ type TouchBarColorPickerConstructorOptions = Electron.TouchBarColorPickerConstructorOptions;
20450
+ type TouchBarConstructorOptions = Electron.TouchBarConstructorOptions;
20451
+ type TouchBarGroupConstructorOptions = Electron.TouchBarGroupConstructorOptions;
20452
+ type TouchBarLabelConstructorOptions = Electron.TouchBarLabelConstructorOptions;
20453
+ type TouchBarPopoverConstructorOptions = Electron.TouchBarPopoverConstructorOptions;
20454
+ type TouchBarScrubberConstructorOptions = Electron.TouchBarScrubberConstructorOptions;
20455
+ type TouchBarSegmentedControlConstructorOptions = Electron.TouchBarSegmentedControlConstructorOptions;
20456
+ type TouchBarSliderConstructorOptions = Electron.TouchBarSliderConstructorOptions;
20457
+ type TouchBarSpacerConstructorOptions = Electron.TouchBarSpacerConstructorOptions;
20458
+ type TraceBufferUsageReturnValue = Electron.TraceBufferUsageReturnValue;
20459
+ type UdpPortRange = Electron.UdpPortRange;
20460
+ type UpdateTargetUrlEvent = Electron.UpdateTargetUrlEvent;
20461
+ type UploadProgress = Electron.UploadProgress;
20462
+ type UsbDeviceRevokedDetails = Electron.UsbDeviceRevokedDetails;
20463
+ type USBProtectedClassesHandlerHandlerDetails = Electron.USBProtectedClassesHandlerHandlerDetails;
20464
+ type VisibleOnAllWorkspacesOptions = Electron.VisibleOnAllWorkspacesOptions;
20465
+ type WebContentsAudioStateChangedEventParams = Electron.WebContentsAudioStateChangedEventParams;
20466
+ type WebContentsDidRedirectNavigationEventParams = Electron.WebContentsDidRedirectNavigationEventParams;
20467
+ type WebContentsDidStartNavigationEventParams = Electron.WebContentsDidStartNavigationEventParams;
20468
+ type WebContentsPrintOptions = Electron.WebContentsPrintOptions;
20469
+ type WebContentsWillFrameNavigateEventParams = Electron.WebContentsWillFrameNavigateEventParams;
20470
+ type WebContentsWillNavigateEventParams = Electron.WebContentsWillNavigateEventParams;
20471
+ type WebContentsWillRedirectEventParams = Electron.WebContentsWillRedirectEventParams;
20472
+ type WebRTCUDPPortRange = Electron.WebRTCUDPPortRange;
20473
+ type WebviewTagPrintOptions = Electron.WebviewTagPrintOptions;
20474
+ type WillFrameNavigateEvent = Electron.WillFrameNavigateEvent;
20475
+ type WillNavigateEvent = Electron.WillNavigateEvent;
20476
+ type WillResizeDetails = Electron.WillResizeDetails;
20477
+ type EditFlags = Electron.EditFlags;
20478
+ type Env = Electron.Env;
20479
+ type FoundInPageResult = Electron.FoundInPageResult;
20480
+ type LaunchItems = Electron.LaunchItems;
20481
+ type Margins = Electron.Margins;
20482
+ type MediaFlags = Electron.MediaFlags;
20483
+ type PageRanges = Electron.PageRanges;
20484
+ type Params = Electron.Params;
20485
+ type Video = Electron.Video;
19577
20486
  type BrowserWindowConstructorOptions = Electron.BrowserWindowConstructorOptions;
20487
+ type BluetoothDevice = Electron.BluetoothDevice;
19578
20488
  type Certificate = Electron.Certificate;
19579
20489
  type CertificatePrincipal = Electron.CertificatePrincipal;
19580
20490
  type Cookie = Electron.Cookie;
@@ -19874,7 +20784,6 @@ declare namespace Electron {
19874
20784
  type Streams = Electron.Streams;
19875
20785
  type SystemMemoryInfo = Electron.SystemMemoryInfo;
19876
20786
  type TitleBarOverlay = Electron.TitleBarOverlay;
19877
- type TitleBarOverlayOptions = Electron.TitleBarOverlayOptions;
19878
20787
  type TitleOptions = Electron.TitleOptions;
19879
20788
  type ToBitmapOptions = Electron.ToBitmapOptions;
19880
20789
  type ToDataURLOptions = Electron.ToDataURLOptions;
@@ -19917,8 +20826,8 @@ declare namespace Electron {
19917
20826
  type PageRanges = Electron.PageRanges;
19918
20827
  type Params = Electron.Params;
19919
20828
  type Video = Electron.Video;
19920
- type BluetoothDevice = Electron.BluetoothDevice;
19921
20829
  type BrowserWindowConstructorOptions = Electron.BrowserWindowConstructorOptions;
20830
+ type BluetoothDevice = Electron.BluetoothDevice;
19922
20831
  type Certificate = Electron.Certificate;
19923
20832
  type CertificatePrincipal = Electron.CertificatePrincipal;
19924
20833
  type Cookie = Electron.Cookie;
@@ -20038,11 +20947,16 @@ declare module 'electron/renderer' {
20038
20947
  export = Electron.Renderer;
20039
20948
  }
20040
20949
 
20950
+ declare module 'electron/utility' {
20951
+ export = Electron.Utility;
20952
+ }
20953
+
20041
20954
  interface NodeRequireFunction {
20042
20955
  (moduleName: 'electron'): typeof Electron.CrossProcessExports;
20043
20956
  (moduleName: 'electron/main'): typeof Electron.Main;
20044
20957
  (moduleName: 'electron/common'): typeof Electron.Common;
20045
20958
  (moduleName: 'electron/renderer'): typeof Electron.Renderer;
20959
+ (moduleName: 'electron/utility'): typeof Electron.Utility;
20046
20960
  }
20047
20961
 
20048
20962
  interface NodeRequire {
@@ -20050,6 +20964,7 @@ interface NodeRequire {
20050
20964
  (moduleName: 'electron/main'): typeof Electron.Main;
20051
20965
  (moduleName: 'electron/common'): typeof Electron.Common;
20052
20966
  (moduleName: 'electron/renderer'): typeof Electron.Renderer;
20967
+ (moduleName: 'electron/utility'): typeof Electron.Utility;
20053
20968
  }
20054
20969
 
20055
20970
  interface File {