electron 28.0.0 → 29.0.0-alpha.1

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.0.0
1
+ // Type definitions for Electron 29.0.0-alpha.1
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.
@@ -395,26 +479,6 @@ declare namespace Electron {
395
479
  once(event: 'gpu-info-update', listener: Function): this;
396
480
  addListener(event: 'gpu-info-update', listener: Function): this;
397
481
  removeListener(event: 'gpu-info-update', listener: Function): this;
398
- /**
399
- * Emitted when the GPU process crashes or is killed.
400
- *
401
- * **Deprecated:** This event is superceded by the `child-process-gone` event which
402
- * contains more information about why the child process disappeared. It isn't
403
- * always because it crashed. The `killed` boolean can be replaced by checking
404
- * `reason === 'killed'` when you switch to that event.
405
- *
406
- * @deprecated
407
- */
408
- on(event: 'gpu-process-crashed', listener: (event: Event,
409
- killed: boolean) => void): this;
410
- off(event: 'gpu-process-crashed', listener: (event: Event,
411
- killed: boolean) => void): this;
412
- once(event: 'gpu-process-crashed', listener: (event: Event,
413
- killed: boolean) => void): this;
414
- addListener(event: 'gpu-process-crashed', listener: (event: Event,
415
- killed: boolean) => void): this;
416
- removeListener(event: 'gpu-process-crashed', listener: (event: Event,
417
- killed: boolean) => void): this;
418
482
  /**
419
483
  * Emitted when `webContents` wants to do basic auth.
420
484
  *
@@ -458,9 +522,21 @@ declare namespace Electron {
458
522
  * @platform darwin
459
523
  */
460
524
  on(event: 'new-window-for-tab', listener: (event: Event) => void): this;
525
+ /**
526
+ * @platform darwin
527
+ */
461
528
  off(event: 'new-window-for-tab', listener: (event: Event) => void): this;
529
+ /**
530
+ * @platform darwin
531
+ */
462
532
  once(event: 'new-window-for-tab', listener: (event: Event) => void): this;
533
+ /**
534
+ * @platform darwin
535
+ */
463
536
  addListener(event: 'new-window-for-tab', listener: (event: Event) => void): this;
537
+ /**
538
+ * @platform darwin
539
+ */
464
540
  removeListener(event: 'new-window-for-tab', listener: (event: Event) => void): this;
465
541
  /**
466
542
  * Emitted when the user wants to open a file with the application. The `open-file`
@@ -479,12 +555,24 @@ declare namespace Electron {
479
555
  */
480
556
  on(event: 'open-file', listener: (event: Event,
481
557
  path: string) => void): this;
558
+ /**
559
+ * @platform darwin
560
+ */
482
561
  off(event: 'open-file', listener: (event: Event,
483
562
  path: string) => void): this;
563
+ /**
564
+ * @platform darwin
565
+ */
484
566
  once(event: 'open-file', listener: (event: Event,
485
567
  path: string) => void): this;
568
+ /**
569
+ * @platform darwin
570
+ */
486
571
  addListener(event: 'open-file', listener: (event: Event,
487
572
  path: string) => void): this;
573
+ /**
574
+ * @platform darwin
575
+ */
488
576
  removeListener(event: 'open-file', listener: (event: Event,
489
577
  path: string) => void): this;
490
578
  /**
@@ -501,12 +589,24 @@ declare namespace Electron {
501
589
  */
502
590
  on(event: 'open-url', listener: (event: Event,
503
591
  url: string) => void): this;
592
+ /**
593
+ * @platform darwin
594
+ */
504
595
  off(event: 'open-url', listener: (event: Event,
505
596
  url: string) => void): this;
597
+ /**
598
+ * @platform darwin
599
+ */
506
600
  once(event: 'open-url', listener: (event: Event,
507
601
  url: string) => void): this;
602
+ /**
603
+ * @platform darwin
604
+ */
508
605
  addListener(event: 'open-url', listener: (event: Event,
509
606
  url: string) => void): this;
607
+ /**
608
+ * @platform darwin
609
+ */
510
610
  removeListener(event: 'open-url', listener: (event: Event,
511
611
  url: string) => void): this;
512
612
  /**
@@ -577,31 +677,6 @@ declare namespace Electron {
577
677
  removeListener(event: 'render-process-gone', listener: (event: Event,
578
678
  webContents: WebContents,
579
679
  details: RenderProcessGoneDetails) => void): this;
580
- /**
581
- * Emitted when the renderer process of `webContents` crashes or is killed.
582
- *
583
- * **Deprecated:** This event is superceded by the `render-process-gone` event
584
- * which contains more information about why the render process disappeared. It
585
- * isn't always because it crashed. The `killed` boolean can be replaced by
586
- * checking `reason === 'killed'` when you switch to that event.
587
- *
588
- * @deprecated
589
- */
590
- on(event: 'renderer-process-crashed', listener: (event: Event,
591
- webContents: WebContents,
592
- killed: boolean) => void): this;
593
- off(event: 'renderer-process-crashed', listener: (event: Event,
594
- webContents: WebContents,
595
- killed: boolean) => void): this;
596
- once(event: 'renderer-process-crashed', listener: (event: Event,
597
- webContents: WebContents,
598
- killed: boolean) => void): this;
599
- addListener(event: 'renderer-process-crashed', listener: (event: Event,
600
- webContents: WebContents,
601
- killed: boolean) => void): this;
602
- removeListener(event: 'renderer-process-crashed', listener: (event: Event,
603
- webContents: WebContents,
604
- killed: boolean) => void): this;
605
680
  /**
606
681
  * This event will be emitted inside the primary instance of your application when
607
682
  * a second instance has been executed and calls `app.requestSingleInstanceLock()`.
@@ -748,6 +823,9 @@ declare namespace Electron {
748
823
  * Contains app-specific state stored by the activity.
749
824
  */
750
825
  userInfo: unknown) => void): this;
826
+ /**
827
+ * @platform darwin
828
+ */
751
829
  off(event: 'update-activity-state', listener: (event: Event,
752
830
  /**
753
831
  * A string identifying the activity. Maps to `NSUserActivity.activityType`.
@@ -757,6 +835,9 @@ declare namespace Electron {
757
835
  * Contains app-specific state stored by the activity.
758
836
  */
759
837
  userInfo: unknown) => void): this;
838
+ /**
839
+ * @platform darwin
840
+ */
760
841
  once(event: 'update-activity-state', listener: (event: Event,
761
842
  /**
762
843
  * A string identifying the activity. Maps to `NSUserActivity.activityType`.
@@ -766,6 +847,9 @@ declare namespace Electron {
766
847
  * Contains app-specific state stored by the activity.
767
848
  */
768
849
  userInfo: unknown) => void): this;
850
+ /**
851
+ * @platform darwin
852
+ */
769
853
  addListener(event: 'update-activity-state', listener: (event: Event,
770
854
  /**
771
855
  * A string identifying the activity. Maps to `NSUserActivity.activityType`.
@@ -775,6 +859,9 @@ declare namespace Electron {
775
859
  * Contains app-specific state stored by the activity.
776
860
  */
777
861
  userInfo: unknown) => void): this;
862
+ /**
863
+ * @platform darwin
864
+ */
778
865
  removeListener(event: 'update-activity-state', listener: (event: Event,
779
866
  /**
780
867
  * A string identifying the activity. Maps to `NSUserActivity.activityType`.
@@ -809,21 +896,33 @@ declare namespace Electron {
809
896
  * A string identifying the activity. Maps to `NSUserActivity.activityType`.
810
897
  */
811
898
  type: string) => void): this;
899
+ /**
900
+ * @platform darwin
901
+ */
812
902
  off(event: 'will-continue-activity', listener: (event: Event,
813
903
  /**
814
904
  * A string identifying the activity. Maps to `NSUserActivity.activityType`.
815
905
  */
816
906
  type: string) => void): this;
907
+ /**
908
+ * @platform darwin
909
+ */
817
910
  once(event: 'will-continue-activity', listener: (event: Event,
818
911
  /**
819
912
  * A string identifying the activity. Maps to `NSUserActivity.activityType`.
820
913
  */
821
914
  type: string) => void): this;
915
+ /**
916
+ * @platform darwin
917
+ */
822
918
  addListener(event: 'will-continue-activity', listener: (event: Event,
823
919
  /**
824
920
  * A string identifying the activity. Maps to `NSUserActivity.activityType`.
825
921
  */
826
922
  type: string) => void): this;
923
+ /**
924
+ * @platform darwin
925
+ */
827
926
  removeListener(event: 'will-continue-activity', listener: (event: Event,
828
927
  /**
829
928
  * A string identifying the activity. Maps to `NSUserActivity.activityType`.
@@ -1064,17 +1163,22 @@ declare namespace Electron {
1064
1163
  *
1065
1164
  *
1066
1165
  * * `openAtLogin` boolean - `true` if the app is set to open at login.
1067
- * * `openAsHidden` boolean _macOS_ - `true` if the app is set to open as hidden at
1068
- * login. This setting is not available on MAS builds.
1069
- * * `wasOpenedAtLogin` boolean _macOS_ - `true` if the app was opened at login
1070
- * automatically. This setting is not available on MAS builds.
1071
- * * `wasOpenedAsHidden` boolean _macOS_ - `true` if the app was opened as a hidden
1072
- * login item. This indicates that the app should not open any windows at startup.
1073
- * This setting is not available on MAS builds.
1074
- * * `restoreState` boolean _macOS_ - `true` if the app was opened as a login item
1075
- * that should restore the state from the previous session. This indicates that the
1076
- * app should restore the windows that were open the last time the app was closed.
1077
- * This setting is not available on MAS builds.
1166
+ * * `openAsHidden` boolean _macOS_ _Deprecated_ - `true` if the app is set to open
1167
+ * as hidden at login. This does not work on macOS 13 and up.
1168
+ * * `wasOpenedAtLogin` boolean _macOS_ _Deprecated_ - `true` if the app was opened
1169
+ * at login automatically. This setting is not available on MAS builds or on macOS
1170
+ * 13 and up.
1171
+ * * `wasOpenedAsHidden` boolean _macOS_ _Deprecated_ - `true` if the app was
1172
+ * opened as a hidden login item. This indicates that the app should not open any
1173
+ * windows at startup. This setting is not available on MAS builds or on macOS 13
1174
+ * and up.
1175
+ * * `restoreState` boolean _macOS_ _Deprecated_ - `true` if the app was opened as
1176
+ * a login item that should restore the state from the previous session. This
1177
+ * indicates that the app should restore the windows that were open the last time
1178
+ * the app was closed. This setting is not available on MAS builds or on macOS 13
1179
+ * and up.
1180
+ * * `status` string _macOS_ - can be one of `not-registered`, `enabled`,
1181
+ * `requires-approval`, or `not-found`.
1078
1182
  * * `executableWillLaunchAtLogin` boolean _Windows_ - `true` if app is set to open
1079
1183
  * at login and its run key is not deactivated. This differs from `openAtLogin` as
1080
1184
  * it ignores the `args` option, this property will be true if the given executable
@@ -1504,10 +1608,15 @@ declare namespace Electron {
1504
1608
  */
1505
1609
  setJumpList(categories: (JumpListCategory[]) | (null)): ('ok' | 'error' | 'invalidSeparatorError' | 'fileTypeRegistrationError' | 'customCategoryAccessDeniedError');
1506
1610
  /**
1611
+ * Set the app's login item settings.
1612
+ *
1507
1613
  * To work with Electron's `autoUpdater` on Windows, which uses Squirrel, you'll
1508
1614
  * want to set the launch path to Update.exe, and pass arguments that specify your
1509
1615
  * application name. For example:
1510
1616
  *
1617
+ * For more information about setting different services as login items on macOS 13
1618
+ * and up, see `SMAppService`.
1619
+ *
1511
1620
  * @platform darwin,win32
1512
1621
  */
1513
1622
  setLoginItemSettings(settings: Settings): void;
@@ -1921,12 +2030,24 @@ declare namespace Electron {
1921
2030
  */
1922
2031
  on(event: 'app-command', listener: (event: Event,
1923
2032
  command: string) => void): this;
2033
+ /**
2034
+ * @platform win32,linux
2035
+ */
1924
2036
  off(event: 'app-command', listener: (event: Event,
1925
2037
  command: string) => void): this;
2038
+ /**
2039
+ * @platform win32,linux
2040
+ */
1926
2041
  once(event: 'app-command', listener: (event: Event,
1927
2042
  command: string) => void): this;
2043
+ /**
2044
+ * @platform win32,linux
2045
+ */
1928
2046
  addListener(event: 'app-command', listener: (event: Event,
1929
2047
  command: string) => void): this;
2048
+ /**
2049
+ * @platform win32,linux
2050
+ */
1930
2051
  removeListener(event: 'app-command', listener: (event: Event,
1931
2052
  command: string) => void): this;
1932
2053
  /**
@@ -2047,9 +2168,21 @@ declare namespace Electron {
2047
2168
  * @platform darwin,win32
2048
2169
  */
2049
2170
  on(event: 'moved', listener: Function): this;
2171
+ /**
2172
+ * @platform darwin,win32
2173
+ */
2050
2174
  off(event: 'moved', listener: Function): this;
2175
+ /**
2176
+ * @platform darwin,win32
2177
+ */
2051
2178
  once(event: 'moved', listener: Function): this;
2179
+ /**
2180
+ * @platform darwin,win32
2181
+ */
2052
2182
  addListener(event: 'moved', listener: Function): this;
2183
+ /**
2184
+ * @platform darwin,win32
2185
+ */
2053
2186
  removeListener(event: 'moved', listener: Function): this;
2054
2187
  /**
2055
2188
  * Emitted when the native new tab button is clicked.
@@ -2057,9 +2190,21 @@ declare namespace Electron {
2057
2190
  * @platform darwin
2058
2191
  */
2059
2192
  on(event: 'new-window-for-tab', listener: Function): this;
2193
+ /**
2194
+ * @platform darwin
2195
+ */
2060
2196
  off(event: 'new-window-for-tab', listener: Function): this;
2197
+ /**
2198
+ * @platform darwin
2199
+ */
2061
2200
  once(event: 'new-window-for-tab', listener: Function): this;
2201
+ /**
2202
+ * @platform darwin
2203
+ */
2062
2204
  addListener(event: 'new-window-for-tab', listener: Function): this;
2205
+ /**
2206
+ * @platform darwin
2207
+ */
2063
2208
  removeListener(event: 'new-window-for-tab', listener: Function): this;
2064
2209
  /**
2065
2210
  * Emitted when the document changed its title, calling `event.preventDefault()`
@@ -2112,9 +2257,21 @@ declare namespace Electron {
2112
2257
  * @platform darwin,win32
2113
2258
  */
2114
2259
  on(event: 'resized', listener: Function): this;
2260
+ /**
2261
+ * @platform darwin,win32
2262
+ */
2115
2263
  off(event: 'resized', listener: Function): this;
2264
+ /**
2265
+ * @platform darwin,win32
2266
+ */
2116
2267
  once(event: 'resized', listener: Function): this;
2268
+ /**
2269
+ * @platform darwin,win32
2270
+ */
2117
2271
  addListener(event: 'resized', listener: Function): this;
2272
+ /**
2273
+ * @platform darwin,win32
2274
+ */
2118
2275
  removeListener(event: 'resized', listener: Function): this;
2119
2276
  /**
2120
2277
  * Emitted when the unresponsive web page becomes responsive again.
@@ -2143,12 +2300,24 @@ declare namespace Electron {
2143
2300
  */
2144
2301
  on(event: 'rotate-gesture', listener: (event: Event,
2145
2302
  rotation: number) => void): this;
2303
+ /**
2304
+ * @platform darwin
2305
+ */
2146
2306
  off(event: 'rotate-gesture', listener: (event: Event,
2147
2307
  rotation: number) => void): this;
2308
+ /**
2309
+ * @platform darwin
2310
+ */
2148
2311
  once(event: 'rotate-gesture', listener: (event: Event,
2149
2312
  rotation: number) => void): this;
2313
+ /**
2314
+ * @platform darwin
2315
+ */
2150
2316
  addListener(event: 'rotate-gesture', listener: (event: Event,
2151
2317
  rotation: number) => void): this;
2318
+ /**
2319
+ * @platform darwin
2320
+ */
2152
2321
  removeListener(event: 'rotate-gesture', listener: (event: Event,
2153
2322
  rotation: number) => void): this;
2154
2323
  /**
@@ -2158,9 +2327,21 @@ declare namespace Electron {
2158
2327
  * @platform win32
2159
2328
  */
2160
2329
  on(event: 'session-end', listener: Function): this;
2330
+ /**
2331
+ * @platform win32
2332
+ */
2161
2333
  off(event: 'session-end', listener: Function): this;
2334
+ /**
2335
+ * @platform win32
2336
+ */
2162
2337
  once(event: 'session-end', listener: Function): this;
2338
+ /**
2339
+ * @platform win32
2340
+ */
2163
2341
  addListener(event: 'session-end', listener: Function): this;
2342
+ /**
2343
+ * @platform win32
2344
+ */
2164
2345
  removeListener(event: 'session-end', listener: Function): this;
2165
2346
  /**
2166
2347
  * Emitted when the window opens a sheet.
@@ -2168,9 +2349,21 @@ declare namespace Electron {
2168
2349
  * @platform darwin
2169
2350
  */
2170
2351
  on(event: 'sheet-begin', listener: Function): this;
2352
+ /**
2353
+ * @platform darwin
2354
+ */
2171
2355
  off(event: 'sheet-begin', listener: Function): this;
2356
+ /**
2357
+ * @platform darwin
2358
+ */
2172
2359
  once(event: 'sheet-begin', listener: Function): this;
2360
+ /**
2361
+ * @platform darwin
2362
+ */
2173
2363
  addListener(event: 'sheet-begin', listener: Function): this;
2364
+ /**
2365
+ * @platform darwin
2366
+ */
2174
2367
  removeListener(event: 'sheet-begin', listener: Function): this;
2175
2368
  /**
2176
2369
  * Emitted when the window has closed a sheet.
@@ -2178,9 +2371,21 @@ declare namespace Electron {
2178
2371
  * @platform darwin
2179
2372
  */
2180
2373
  on(event: 'sheet-end', listener: Function): this;
2374
+ /**
2375
+ * @platform darwin
2376
+ */
2181
2377
  off(event: 'sheet-end', listener: Function): this;
2378
+ /**
2379
+ * @platform darwin
2380
+ */
2182
2381
  once(event: 'sheet-end', listener: Function): this;
2382
+ /**
2383
+ * @platform darwin
2384
+ */
2183
2385
  addListener(event: 'sheet-end', listener: Function): this;
2386
+ /**
2387
+ * @platform darwin
2388
+ */
2184
2389
  removeListener(event: 'sheet-end', listener: Function): this;
2185
2390
  /**
2186
2391
  * Emitted when the window is shown.
@@ -2205,12 +2410,24 @@ declare namespace Electron {
2205
2410
  */
2206
2411
  on(event: 'swipe', listener: (event: Event,
2207
2412
  direction: string) => void): this;
2413
+ /**
2414
+ * @platform darwin
2415
+ */
2208
2416
  off(event: 'swipe', listener: (event: Event,
2209
2417
  direction: string) => void): this;
2210
- once(event: 'swipe', listener: (event: Event,
2418
+ /**
2419
+ * @platform darwin
2420
+ */
2421
+ once(event: 'swipe', listener: (event: Event,
2211
2422
  direction: string) => void): this;
2423
+ /**
2424
+ * @platform darwin
2425
+ */
2212
2426
  addListener(event: 'swipe', listener: (event: Event,
2213
2427
  direction: string) => void): this;
2428
+ /**
2429
+ * @platform darwin
2430
+ */
2214
2431
  removeListener(event: 'swipe', listener: (event: Event,
2215
2432
  direction: string) => void): this;
2216
2433
  /**
@@ -2228,21 +2445,33 @@ declare namespace Electron {
2228
2445
  * The screen coordinates the context menu was triggered at
2229
2446
  */
2230
2447
  point: Point) => void): this;
2448
+ /**
2449
+ * @platform win32
2450
+ */
2231
2451
  off(event: 'system-context-menu', listener: (event: Event,
2232
2452
  /**
2233
2453
  * The screen coordinates the context menu was triggered at
2234
2454
  */
2235
2455
  point: Point) => void): this;
2456
+ /**
2457
+ * @platform win32
2458
+ */
2236
2459
  once(event: 'system-context-menu', listener: (event: Event,
2237
2460
  /**
2238
2461
  * The screen coordinates the context menu was triggered at
2239
2462
  */
2240
2463
  point: Point) => void): this;
2464
+ /**
2465
+ * @platform win32
2466
+ */
2241
2467
  addListener(event: 'system-context-menu', listener: (event: Event,
2242
2468
  /**
2243
2469
  * The screen coordinates the context menu was triggered at
2244
2470
  */
2245
2471
  point: Point) => void): this;
2472
+ /**
2473
+ * @platform win32
2474
+ */
2246
2475
  removeListener(event: 'system-context-menu', listener: (event: Event,
2247
2476
  /**
2248
2477
  * The screen coordinates the context menu was triggered at
@@ -2278,21 +2507,33 @@ declare namespace Electron {
2278
2507
  * Location the window is being moved to.
2279
2508
  */
2280
2509
  newBounds: Rectangle) => void): this;
2510
+ /**
2511
+ * @platform darwin,win32
2512
+ */
2281
2513
  off(event: 'will-move', listener: (event: Event,
2282
2514
  /**
2283
2515
  * Location the window is being moved to.
2284
2516
  */
2285
2517
  newBounds: Rectangle) => void): this;
2518
+ /**
2519
+ * @platform darwin,win32
2520
+ */
2286
2521
  once(event: 'will-move', listener: (event: Event,
2287
2522
  /**
2288
2523
  * Location the window is being moved to.
2289
2524
  */
2290
2525
  newBounds: Rectangle) => void): this;
2526
+ /**
2527
+ * @platform darwin,win32
2528
+ */
2291
2529
  addListener(event: 'will-move', listener: (event: Event,
2292
2530
  /**
2293
2531
  * Location the window is being moved to.
2294
2532
  */
2295
2533
  newBounds: Rectangle) => void): this;
2534
+ /**
2535
+ * @platform darwin,win32
2536
+ */
2296
2537
  removeListener(event: 'will-move', listener: (event: Event,
2297
2538
  /**
2298
2539
  * Location the window is being moved to.
@@ -2322,24 +2563,36 @@ declare namespace Electron {
2322
2563
  */
2323
2564
  newBounds: Rectangle,
2324
2565
  details: WillResizeDetails) => void): this;
2566
+ /**
2567
+ * @platform darwin,win32
2568
+ */
2325
2569
  off(event: 'will-resize', listener: (event: Event,
2326
2570
  /**
2327
2571
  * Size the window is being resized to.
2328
2572
  */
2329
2573
  newBounds: Rectangle,
2330
2574
  details: WillResizeDetails) => void): this;
2575
+ /**
2576
+ * @platform darwin,win32
2577
+ */
2331
2578
  once(event: 'will-resize', listener: (event: Event,
2332
2579
  /**
2333
2580
  * Size the window is being resized to.
2334
2581
  */
2335
2582
  newBounds: Rectangle,
2336
2583
  details: WillResizeDetails) => void): this;
2584
+ /**
2585
+ * @platform darwin,win32
2586
+ */
2337
2587
  addListener(event: 'will-resize', listener: (event: Event,
2338
2588
  /**
2339
2589
  * Size the window is being resized to.
2340
2590
  */
2341
2591
  newBounds: Rectangle,
2342
2592
  details: WillResizeDetails) => void): this;
2593
+ /**
2594
+ * @platform darwin,win32
2595
+ */
2343
2596
  removeListener(event: 'will-resize', listener: (event: Event,
2344
2597
  /**
2345
2598
  * Size the window is being resized to.
@@ -3205,7 +3458,7 @@ declare namespace Electron {
3205
3458
  *
3206
3459
  * @platform win32
3207
3460
  */
3208
- setTitleBarOverlay(options: TitleBarOverlayOptions): void;
3461
+ setTitleBarOverlay(options: TitleBarOverlay): void;
3209
3462
  /**
3210
3463
  * Raises `browserView` above other `BrowserView`s attached to `win`. Throws an
3211
3464
  * error if `browserView` is not attached to `win`.
@@ -4480,7 +4733,7 @@ declare namespace Electron {
4480
4733
  *
4481
4734
  * **Note:** This method is only available in the main process.
4482
4735
  */
4483
- getLastCrashReport(): CrashReport;
4736
+ getLastCrashReport(): (CrashReport) | (null);
4484
4737
  /**
4485
4738
  * The current 'extra' parameters of the crash reporter.
4486
4739
  */
@@ -6844,21 +7097,33 @@ declare namespace Electron {
6844
7097
  * The index of the action that was activated.
6845
7098
  */
6846
7099
  index: number) => void): this;
7100
+ /**
7101
+ * @platform darwin
7102
+ */
6847
7103
  off(event: 'action', listener: (event: Event,
6848
7104
  /**
6849
7105
  * The index of the action that was activated.
6850
7106
  */
6851
7107
  index: number) => void): this;
7108
+ /**
7109
+ * @platform darwin
7110
+ */
6852
7111
  once(event: 'action', listener: (event: Event,
6853
7112
  /**
6854
7113
  * The index of the action that was activated.
6855
7114
  */
6856
7115
  index: number) => void): this;
7116
+ /**
7117
+ * @platform darwin
7118
+ */
6857
7119
  addListener(event: 'action', listener: (event: Event,
6858
7120
  /**
6859
7121
  * The index of the action that was activated.
6860
7122
  */
6861
7123
  index: number) => void): this;
7124
+ /**
7125
+ * @platform darwin
7126
+ */
6862
7127
  removeListener(event: 'action', listener: (event: Event,
6863
7128
  /**
6864
7129
  * The index of the action that was activated.
@@ -6901,21 +7166,33 @@ declare namespace Electron {
6901
7166
  * The error encountered during execution of the `show()` method.
6902
7167
  */
6903
7168
  error: string) => void): this;
7169
+ /**
7170
+ * @platform win32
7171
+ */
6904
7172
  off(event: 'failed', listener: (event: Event,
6905
7173
  /**
6906
7174
  * The error encountered during execution of the `show()` method.
6907
7175
  */
6908
7176
  error: string) => void): this;
7177
+ /**
7178
+ * @platform win32
7179
+ */
6909
7180
  once(event: 'failed', listener: (event: Event,
6910
7181
  /**
6911
7182
  * The error encountered during execution of the `show()` method.
6912
7183
  */
6913
7184
  error: string) => void): this;
7185
+ /**
7186
+ * @platform win32
7187
+ */
6914
7188
  addListener(event: 'failed', listener: (event: Event,
6915
7189
  /**
6916
7190
  * The error encountered during execution of the `show()` method.
6917
7191
  */
6918
7192
  error: string) => void): this;
7193
+ /**
7194
+ * @platform win32
7195
+ */
6919
7196
  removeListener(event: 'failed', listener: (event: Event,
6920
7197
  /**
6921
7198
  * The error encountered during execution of the `show()` method.
@@ -6932,21 +7209,33 @@ declare namespace Electron {
6932
7209
  * The string the user entered into the inline reply field.
6933
7210
  */
6934
7211
  reply: string) => void): this;
7212
+ /**
7213
+ * @platform darwin
7214
+ */
6935
7215
  off(event: 'reply', listener: (event: Event,
6936
7216
  /**
6937
7217
  * The string the user entered into the inline reply field.
6938
7218
  */
6939
7219
  reply: string) => void): this;
7220
+ /**
7221
+ * @platform darwin
7222
+ */
6940
7223
  once(event: 'reply', listener: (event: Event,
6941
7224
  /**
6942
7225
  * The string the user entered into the inline reply field.
6943
7226
  */
6944
7227
  reply: string) => void): this;
7228
+ /**
7229
+ * @platform darwin
7230
+ */
6945
7231
  addListener(event: 'reply', listener: (event: Event,
6946
7232
  /**
6947
7233
  * The string the user entered into the inline reply field.
6948
7234
  */
6949
7235
  reply: string) => void): this;
7236
+ /**
7237
+ * @platform darwin
7238
+ */
6950
7239
  removeListener(event: 'reply', listener: (event: Event,
6951
7240
  /**
6952
7241
  * The string the user entered into the inline reply field.
@@ -7178,9 +7467,21 @@ declare namespace Electron {
7178
7467
  * @platform darwin,win32
7179
7468
  */
7180
7469
  on(event: 'lock-screen', listener: Function): this;
7470
+ /**
7471
+ * @platform darwin,win32
7472
+ */
7181
7473
  off(event: 'lock-screen', listener: Function): this;
7474
+ /**
7475
+ * @platform darwin,win32
7476
+ */
7182
7477
  once(event: 'lock-screen', listener: Function): this;
7478
+ /**
7479
+ * @platform darwin,win32
7480
+ */
7183
7481
  addListener(event: 'lock-screen', listener: Function): this;
7482
+ /**
7483
+ * @platform darwin,win32
7484
+ */
7184
7485
  removeListener(event: 'lock-screen', listener: Function): this;
7185
7486
  /**
7186
7487
  * Emitted when the system changes to AC power.
@@ -7188,9 +7489,21 @@ declare namespace Electron {
7188
7489
  * @platform darwin,win32
7189
7490
  */
7190
7491
  on(event: 'on-ac', listener: Function): this;
7492
+ /**
7493
+ * @platform darwin,win32
7494
+ */
7191
7495
  off(event: 'on-ac', listener: Function): this;
7496
+ /**
7497
+ * @platform darwin,win32
7498
+ */
7192
7499
  once(event: 'on-ac', listener: Function): this;
7500
+ /**
7501
+ * @platform darwin,win32
7502
+ */
7193
7503
  addListener(event: 'on-ac', listener: Function): this;
7504
+ /**
7505
+ * @platform darwin,win32
7506
+ */
7194
7507
  removeListener(event: 'on-ac', listener: Function): this;
7195
7508
  /**
7196
7509
  * Emitted when system changes to battery power.
@@ -7198,9 +7511,21 @@ declare namespace Electron {
7198
7511
  * @platform darwin
7199
7512
  */
7200
7513
  on(event: 'on-battery', listener: Function): this;
7514
+ /**
7515
+ * @platform darwin
7516
+ */
7201
7517
  off(event: 'on-battery', listener: Function): this;
7518
+ /**
7519
+ * @platform darwin
7520
+ */
7202
7521
  once(event: 'on-battery', listener: Function): this;
7522
+ /**
7523
+ * @platform darwin
7524
+ */
7203
7525
  addListener(event: 'on-battery', listener: Function): this;
7526
+ /**
7527
+ * @platform darwin
7528
+ */
7204
7529
  removeListener(event: 'on-battery', listener: Function): this;
7205
7530
  /**
7206
7531
  * Emitted when system is resuming.
@@ -7219,9 +7544,21 @@ declare namespace Electron {
7219
7544
  * @platform linux,darwin
7220
7545
  */
7221
7546
  on(event: 'shutdown', listener: Function): this;
7547
+ /**
7548
+ * @platform linux,darwin
7549
+ */
7222
7550
  off(event: 'shutdown', listener: Function): this;
7551
+ /**
7552
+ * @platform linux,darwin
7553
+ */
7223
7554
  once(event: 'shutdown', listener: Function): this;
7555
+ /**
7556
+ * @platform linux,darwin
7557
+ */
7224
7558
  addListener(event: 'shutdown', listener: Function): this;
7559
+ /**
7560
+ * @platform linux,darwin
7561
+ */
7225
7562
  removeListener(event: 'shutdown', listener: Function): this;
7226
7563
  /**
7227
7564
  * Notification of a change in the operating system's advertised speed limit for
@@ -7231,9 +7568,21 @@ declare namespace Electron {
7231
7568
  * @platform darwin,win32
7232
7569
  */
7233
7570
  on(event: 'speed-limit-change', listener: Function): this;
7571
+ /**
7572
+ * @platform darwin,win32
7573
+ */
7234
7574
  off(event: 'speed-limit-change', listener: Function): this;
7575
+ /**
7576
+ * @platform darwin,win32
7577
+ */
7235
7578
  once(event: 'speed-limit-change', listener: Function): this;
7579
+ /**
7580
+ * @platform darwin,win32
7581
+ */
7236
7582
  addListener(event: 'speed-limit-change', listener: Function): this;
7583
+ /**
7584
+ * @platform darwin,win32
7585
+ */
7237
7586
  removeListener(event: 'speed-limit-change', listener: Function): this;
7238
7587
  /**
7239
7588
  * Emitted when the system is suspending.
@@ -7260,9 +7609,21 @@ declare namespace Electron {
7260
7609
  * @platform darwin
7261
7610
  */
7262
7611
  on(event: 'thermal-state-change', listener: Function): this;
7612
+ /**
7613
+ * @platform darwin
7614
+ */
7263
7615
  off(event: 'thermal-state-change', listener: Function): this;
7616
+ /**
7617
+ * @platform darwin
7618
+ */
7264
7619
  once(event: 'thermal-state-change', listener: Function): this;
7620
+ /**
7621
+ * @platform darwin
7622
+ */
7265
7623
  addListener(event: 'thermal-state-change', listener: Function): this;
7624
+ /**
7625
+ * @platform darwin
7626
+ */
7266
7627
  removeListener(event: 'thermal-state-change', listener: Function): this;
7267
7628
  /**
7268
7629
  * Emitted as soon as the systems screen is unlocked.
@@ -7270,9 +7631,21 @@ declare namespace Electron {
7270
7631
  * @platform darwin,win32
7271
7632
  */
7272
7633
  on(event: 'unlock-screen', listener: Function): this;
7634
+ /**
7635
+ * @platform darwin,win32
7636
+ */
7273
7637
  off(event: 'unlock-screen', listener: Function): this;
7638
+ /**
7639
+ * @platform darwin,win32
7640
+ */
7274
7641
  once(event: 'unlock-screen', listener: Function): this;
7642
+ /**
7643
+ * @platform darwin,win32
7644
+ */
7275
7645
  addListener(event: 'unlock-screen', listener: Function): this;
7646
+ /**
7647
+ * @platform darwin,win32
7648
+ */
7276
7649
  removeListener(event: 'unlock-screen', listener: Function): this;
7277
7650
  /**
7278
7651
  * Emitted when a login session is activated. See documentation for more
@@ -7281,9 +7654,21 @@ declare namespace Electron {
7281
7654
  * @platform darwin
7282
7655
  */
7283
7656
  on(event: 'user-did-become-active', listener: Function): this;
7657
+ /**
7658
+ * @platform darwin
7659
+ */
7284
7660
  off(event: 'user-did-become-active', listener: Function): this;
7661
+ /**
7662
+ * @platform darwin
7663
+ */
7285
7664
  once(event: 'user-did-become-active', listener: Function): this;
7665
+ /**
7666
+ * @platform darwin
7667
+ */
7286
7668
  addListener(event: 'user-did-become-active', listener: Function): this;
7669
+ /**
7670
+ * @platform darwin
7671
+ */
7287
7672
  removeListener(event: 'user-did-become-active', listener: Function): this;
7288
7673
  /**
7289
7674
  * Emitted when a login session is deactivated. See documentation for more
@@ -7292,9 +7677,21 @@ declare namespace Electron {
7292
7677
  * @platform darwin
7293
7678
  */
7294
7679
  on(event: 'user-did-resign-active', listener: Function): this;
7680
+ /**
7681
+ * @platform darwin
7682
+ */
7295
7683
  off(event: 'user-did-resign-active', listener: Function): this;
7684
+ /**
7685
+ * @platform darwin
7686
+ */
7296
7687
  once(event: 'user-did-resign-active', listener: Function): this;
7688
+ /**
7689
+ * @platform darwin
7690
+ */
7297
7691
  addListener(event: 'user-did-resign-active', listener: Function): this;
7692
+ /**
7693
+ * @platform darwin
7694
+ */
7298
7695
  removeListener(event: 'user-did-resign-active', listener: Function): this;
7299
7696
  /**
7300
7697
  * The system's current thermal state. Can be `unknown`, `nominal`, `fair`,
@@ -7701,9 +8098,9 @@ declare namespace Electron {
7701
8098
  * module gets emitted and can be called only once.
7702
8099
  *
7703
8100
  * Registers the `scheme` as standard, secure, bypasses content security policy for
7704
- * resources, allows registering ServiceWorker, supports fetch API, and streaming
7705
- * video/audio. Specify a privilege with the value of `true` to enable the
7706
- * capability.
8101
+ * resources, allows registering ServiceWorker, supports fetch API, streaming
8102
+ * video/audio, and V8 code cache. Specify a privilege with the value of `true` to
8103
+ * enable the capability.
7707
8104
  *
7708
8105
  * An example of registering a privileged scheme, that bypasses Content Security
7709
8106
  * Policy:
@@ -7888,12 +8285,24 @@ declare namespace Electron {
7888
8285
  */
7889
8286
  on(event: 'received-apns-notification', listener: (event: Event,
7890
8287
  userInfo: Record<string, any>) => void): this;
8288
+ /**
8289
+ * @platform darwin
8290
+ */
7891
8291
  off(event: 'received-apns-notification', listener: (event: Event,
7892
8292
  userInfo: Record<string, any>) => void): this;
8293
+ /**
8294
+ * @platform darwin
8295
+ */
7893
8296
  once(event: 'received-apns-notification', listener: (event: Event,
7894
8297
  userInfo: Record<string, any>) => void): this;
8298
+ /**
8299
+ * @platform darwin
8300
+ */
7895
8301
  addListener(event: 'received-apns-notification', listener: (event: Event,
7896
8302
  userInfo: Record<string, any>) => void): this;
8303
+ /**
8304
+ * @platform darwin
8305
+ */
7897
8306
  removeListener(event: 'received-apns-notification', listener: (event: Event,
7898
8307
  userInfo: Record<string, any>) => void): this;
7899
8308
  /**
@@ -9079,6 +9488,10 @@ declare namespace Electron {
9079
9488
  * all operations related to code cache will fail silently inside the runtime. By
9080
9489
  * default, the directory will be `Code Cache` under the respective user data
9081
9490
  * folder.
9491
+ *
9492
+ * Note that by default code cache is only enabled for http(s) URLs, to enable code
9493
+ * cache for custom protocols, `codeCache: true` and `standard: true` must be
9494
+ * specified when registering the protocol.
9082
9495
  */
9083
9496
  setCodeCachePath(path: string): void;
9084
9497
  /**
@@ -9480,21 +9893,33 @@ declare namespace Electron {
9480
9893
  * The new RGBA color the user assigned to be their system accent color.
9481
9894
  */
9482
9895
  newColor: string) => void): this;
9896
+ /**
9897
+ * @platform win32
9898
+ */
9483
9899
  off(event: 'accent-color-changed', listener: (event: Event,
9484
9900
  /**
9485
9901
  * The new RGBA color the user assigned to be their system accent color.
9486
9902
  */
9487
9903
  newColor: string) => void): this;
9904
+ /**
9905
+ * @platform win32
9906
+ */
9488
9907
  once(event: 'accent-color-changed', listener: (event: Event,
9489
9908
  /**
9490
9909
  * The new RGBA color the user assigned to be their system accent color.
9491
9910
  */
9492
9911
  newColor: string) => void): this;
9912
+ /**
9913
+ * @platform win32
9914
+ */
9493
9915
  addListener(event: 'accent-color-changed', listener: (event: Event,
9494
9916
  /**
9495
9917
  * The new RGBA color the user assigned to be their system accent color.
9496
9918
  */
9497
9919
  newColor: string) => void): this;
9920
+ /**
9921
+ * @platform win32
9922
+ */
9498
9923
  removeListener(event: 'accent-color-changed', listener: (event: Event,
9499
9924
  /**
9500
9925
  * The new RGBA color the user assigned to be their system accent color.
@@ -9504,9 +9929,21 @@ declare namespace Electron {
9504
9929
  * @platform win32
9505
9930
  */
9506
9931
  on(event: 'color-changed', listener: (event: Event) => void): this;
9932
+ /**
9933
+ * @platform win32
9934
+ */
9507
9935
  off(event: 'color-changed', listener: (event: Event) => void): this;
9936
+ /**
9937
+ * @platform win32
9938
+ */
9508
9939
  once(event: 'color-changed', listener: (event: Event) => void): this;
9940
+ /**
9941
+ * @platform win32
9942
+ */
9509
9943
  addListener(event: 'color-changed', listener: (event: Event) => void): this;
9944
+ /**
9945
+ * @platform win32
9946
+ */
9510
9947
  removeListener(event: 'color-changed', listener: (event: Event) => void): this;
9511
9948
  /**
9512
9949
  * A promise that resolves with `true` if consent was granted and `false` if it was
@@ -10285,9 +10722,21 @@ declare namespace Electron {
10285
10722
  * @platform win32
10286
10723
  */
10287
10724
  on(event: 'balloon-click', listener: Function): this;
10725
+ /**
10726
+ * @platform win32
10727
+ */
10288
10728
  off(event: 'balloon-click', listener: Function): this;
10729
+ /**
10730
+ * @platform win32
10731
+ */
10289
10732
  once(event: 'balloon-click', listener: Function): this;
10733
+ /**
10734
+ * @platform win32
10735
+ */
10290
10736
  addListener(event: 'balloon-click', listener: Function): this;
10737
+ /**
10738
+ * @platform win32
10739
+ */
10291
10740
  removeListener(event: 'balloon-click', listener: Function): this;
10292
10741
  /**
10293
10742
  * Emitted when the tray balloon is closed because of timeout or user manually
@@ -10296,9 +10745,21 @@ declare namespace Electron {
10296
10745
  * @platform win32
10297
10746
  */
10298
10747
  on(event: 'balloon-closed', listener: Function): this;
10748
+ /**
10749
+ * @platform win32
10750
+ */
10299
10751
  off(event: 'balloon-closed', listener: Function): this;
10752
+ /**
10753
+ * @platform win32
10754
+ */
10300
10755
  once(event: 'balloon-closed', listener: Function): this;
10756
+ /**
10757
+ * @platform win32
10758
+ */
10301
10759
  addListener(event: 'balloon-closed', listener: Function): this;
10760
+ /**
10761
+ * @platform win32
10762
+ */
10302
10763
  removeListener(event: 'balloon-closed', listener: Function): this;
10303
10764
  /**
10304
10765
  * Emitted when the tray balloon shows.
@@ -10306,12 +10767,24 @@ declare namespace Electron {
10306
10767
  * @platform win32
10307
10768
  */
10308
10769
  on(event: 'balloon-show', listener: Function): this;
10309
- off(event: 'balloon-show', listener: Function): this;
10310
- once(event: 'balloon-show', listener: Function): this;
10311
- addListener(event: 'balloon-show', listener: Function): this;
10312
- removeListener(event: 'balloon-show', listener: Function): this;
10313
10770
  /**
10314
- * Emitted when the tray icon is clicked.
10771
+ * @platform win32
10772
+ */
10773
+ off(event: 'balloon-show', listener: Function): this;
10774
+ /**
10775
+ * @platform win32
10776
+ */
10777
+ once(event: 'balloon-show', listener: Function): this;
10778
+ /**
10779
+ * @platform win32
10780
+ */
10781
+ addListener(event: 'balloon-show', listener: Function): this;
10782
+ /**
10783
+ * @platform win32
10784
+ */
10785
+ removeListener(event: 'balloon-show', listener: Function): this;
10786
+ /**
10787
+ * Emitted when the tray icon is clicked.
10315
10788
  *
10316
10789
  * Note that on Linux this event is emitted when the tray icon receives an
10317
10790
  * activation, which might not necessarily be left mouse click.
@@ -10371,21 +10844,33 @@ declare namespace Electron {
10371
10844
  * The bounds of tray icon.
10372
10845
  */
10373
10846
  bounds: Rectangle) => void): this;
10847
+ /**
10848
+ * @platform darwin,win32
10849
+ */
10374
10850
  off(event: 'double-click', listener: (event: KeyboardEvent,
10375
10851
  /**
10376
10852
  * The bounds of tray icon.
10377
10853
  */
10378
10854
  bounds: Rectangle) => void): this;
10855
+ /**
10856
+ * @platform darwin,win32
10857
+ */
10379
10858
  once(event: 'double-click', listener: (event: KeyboardEvent,
10380
10859
  /**
10381
10860
  * The bounds of tray icon.
10382
10861
  */
10383
10862
  bounds: Rectangle) => void): this;
10863
+ /**
10864
+ * @platform darwin,win32
10865
+ */
10384
10866
  addListener(event: 'double-click', listener: (event: KeyboardEvent,
10385
10867
  /**
10386
10868
  * The bounds of tray icon.
10387
10869
  */
10388
10870
  bounds: Rectangle) => void): this;
10871
+ /**
10872
+ * @platform darwin,win32
10873
+ */
10389
10874
  removeListener(event: 'double-click', listener: (event: KeyboardEvent,
10390
10875
  /**
10391
10876
  * The bounds of tray icon.
@@ -10397,9 +10882,21 @@ declare namespace Electron {
10397
10882
  * @platform darwin
10398
10883
  */
10399
10884
  on(event: 'drag-end', listener: Function): this;
10885
+ /**
10886
+ * @platform darwin
10887
+ */
10400
10888
  off(event: 'drag-end', listener: Function): this;
10889
+ /**
10890
+ * @platform darwin
10891
+ */
10401
10892
  once(event: 'drag-end', listener: Function): this;
10893
+ /**
10894
+ * @platform darwin
10895
+ */
10402
10896
  addListener(event: 'drag-end', listener: Function): this;
10897
+ /**
10898
+ * @platform darwin
10899
+ */
10403
10900
  removeListener(event: 'drag-end', listener: Function): this;
10404
10901
  /**
10405
10902
  * Emitted when a drag operation enters the tray icon.
@@ -10407,9 +10904,21 @@ declare namespace Electron {
10407
10904
  * @platform darwin
10408
10905
  */
10409
10906
  on(event: 'drag-enter', listener: Function): this;
10907
+ /**
10908
+ * @platform darwin
10909
+ */
10410
10910
  off(event: 'drag-enter', listener: Function): this;
10911
+ /**
10912
+ * @platform darwin
10913
+ */
10411
10914
  once(event: 'drag-enter', listener: Function): this;
10915
+ /**
10916
+ * @platform darwin
10917
+ */
10412
10918
  addListener(event: 'drag-enter', listener: Function): this;
10919
+ /**
10920
+ * @platform darwin
10921
+ */
10413
10922
  removeListener(event: 'drag-enter', listener: Function): this;
10414
10923
  /**
10415
10924
  * Emitted when a drag operation exits the tray icon.
@@ -10417,9 +10926,21 @@ declare namespace Electron {
10417
10926
  * @platform darwin
10418
10927
  */
10419
10928
  on(event: 'drag-leave', listener: Function): this;
10929
+ /**
10930
+ * @platform darwin
10931
+ */
10420
10932
  off(event: 'drag-leave', listener: Function): this;
10933
+ /**
10934
+ * @platform darwin
10935
+ */
10421
10936
  once(event: 'drag-leave', listener: Function): this;
10937
+ /**
10938
+ * @platform darwin
10939
+ */
10422
10940
  addListener(event: 'drag-leave', listener: Function): this;
10941
+ /**
10942
+ * @platform darwin
10943
+ */
10423
10944
  removeListener(event: 'drag-leave', listener: Function): this;
10424
10945
  /**
10425
10946
  * Emitted when any dragged items are dropped on the tray icon.
@@ -10427,9 +10948,21 @@ declare namespace Electron {
10427
10948
  * @platform darwin
10428
10949
  */
10429
10950
  on(event: 'drop', listener: Function): this;
10951
+ /**
10952
+ * @platform darwin
10953
+ */
10430
10954
  off(event: 'drop', listener: Function): this;
10955
+ /**
10956
+ * @platform darwin
10957
+ */
10431
10958
  once(event: 'drop', listener: Function): this;
10959
+ /**
10960
+ * @platform darwin
10961
+ */
10432
10962
  addListener(event: 'drop', listener: Function): this;
10963
+ /**
10964
+ * @platform darwin
10965
+ */
10433
10966
  removeListener(event: 'drop', listener: Function): this;
10434
10967
  /**
10435
10968
  * Emitted when dragged files are dropped in the tray icon.
@@ -10441,21 +10974,33 @@ declare namespace Electron {
10441
10974
  * The paths of the dropped files.
10442
10975
  */
10443
10976
  files: string[]) => void): this;
10977
+ /**
10978
+ * @platform darwin
10979
+ */
10444
10980
  off(event: 'drop-files', listener: (event: Event,
10445
10981
  /**
10446
10982
  * The paths of the dropped files.
10447
10983
  */
10448
10984
  files: string[]) => void): this;
10985
+ /**
10986
+ * @platform darwin
10987
+ */
10449
10988
  once(event: 'drop-files', listener: (event: Event,
10450
10989
  /**
10451
10990
  * The paths of the dropped files.
10452
10991
  */
10453
10992
  files: string[]) => void): this;
10993
+ /**
10994
+ * @platform darwin
10995
+ */
10454
10996
  addListener(event: 'drop-files', listener: (event: Event,
10455
10997
  /**
10456
10998
  * The paths of the dropped files.
10457
10999
  */
10458
11000
  files: string[]) => void): this;
11001
+ /**
11002
+ * @platform darwin
11003
+ */
10459
11004
  removeListener(event: 'drop-files', listener: (event: Event,
10460
11005
  /**
10461
11006
  * The paths of the dropped files.
@@ -10471,21 +11016,33 @@ declare namespace Electron {
10471
11016
  * the dropped text string.
10472
11017
  */
10473
11018
  text: string) => void): this;
11019
+ /**
11020
+ * @platform darwin
11021
+ */
10474
11022
  off(event: 'drop-text', listener: (event: Event,
10475
11023
  /**
10476
11024
  * the dropped text string.
10477
11025
  */
10478
11026
  text: string) => void): this;
11027
+ /**
11028
+ * @platform darwin
11029
+ */
10479
11030
  once(event: 'drop-text', listener: (event: Event,
10480
11031
  /**
10481
11032
  * the dropped text string.
10482
11033
  */
10483
11034
  text: string) => void): this;
11035
+ /**
11036
+ * @platform darwin
11037
+ */
10484
11038
  addListener(event: 'drop-text', listener: (event: Event,
10485
11039
  /**
10486
11040
  * the dropped text string.
10487
11041
  */
10488
11042
  text: string) => void): this;
11043
+ /**
11044
+ * @platform darwin
11045
+ */
10489
11046
  removeListener(event: 'drop-text', listener: (event: Event,
10490
11047
  /**
10491
11048
  * the dropped text string.
@@ -10501,21 +11058,33 @@ declare namespace Electron {
10501
11058
  * The bounds of tray icon.
10502
11059
  */
10503
11060
  bounds: Rectangle) => void): this;
11061
+ /**
11062
+ * @platform win32
11063
+ */
10504
11064
  off(event: 'middle-click', listener: (event: KeyboardEvent,
10505
11065
  /**
10506
11066
  * The bounds of tray icon.
10507
11067
  */
10508
11068
  bounds: Rectangle) => void): this;
11069
+ /**
11070
+ * @platform win32
11071
+ */
10509
11072
  once(event: 'middle-click', listener: (event: KeyboardEvent,
10510
11073
  /**
10511
11074
  * The bounds of tray icon.
10512
11075
  */
10513
11076
  bounds: Rectangle) => void): this;
11077
+ /**
11078
+ * @platform win32
11079
+ */
10514
11080
  addListener(event: 'middle-click', listener: (event: KeyboardEvent,
10515
11081
  /**
10516
11082
  * The bounds of tray icon.
10517
11083
  */
10518
11084
  bounds: Rectangle) => void): this;
11085
+ /**
11086
+ * @platform win32
11087
+ */
10519
11088
  removeListener(event: 'middle-click', listener: (event: KeyboardEvent,
10520
11089
  /**
10521
11090
  * The bounds of tray icon.
@@ -10531,21 +11100,33 @@ declare namespace Electron {
10531
11100
  * The position of the event.
10532
11101
  */
10533
11102
  position: Point) => void): this;
11103
+ /**
11104
+ * @platform darwin
11105
+ */
10534
11106
  off(event: 'mouse-down', listener: (event: KeyboardEvent,
10535
11107
  /**
10536
11108
  * The position of the event.
10537
11109
  */
10538
11110
  position: Point) => void): this;
11111
+ /**
11112
+ * @platform darwin
11113
+ */
10539
11114
  once(event: 'mouse-down', listener: (event: KeyboardEvent,
10540
11115
  /**
10541
11116
  * The position of the event.
10542
11117
  */
10543
11118
  position: Point) => void): this;
11119
+ /**
11120
+ * @platform darwin
11121
+ */
10544
11122
  addListener(event: 'mouse-down', listener: (event: KeyboardEvent,
10545
11123
  /**
10546
11124
  * The position of the event.
10547
11125
  */
10548
11126
  position: Point) => void): this;
11127
+ /**
11128
+ * @platform darwin
11129
+ */
10549
11130
  removeListener(event: 'mouse-down', listener: (event: KeyboardEvent,
10550
11131
  /**
10551
11132
  * The position of the event.
@@ -10561,21 +11142,33 @@ declare namespace Electron {
10561
11142
  * The position of the event.
10562
11143
  */
10563
11144
  position: Point) => void): this;
11145
+ /**
11146
+ * @platform darwin,win32
11147
+ */
10564
11148
  off(event: 'mouse-enter', listener: (event: KeyboardEvent,
10565
11149
  /**
10566
11150
  * The position of the event.
10567
11151
  */
10568
11152
  position: Point) => void): this;
11153
+ /**
11154
+ * @platform darwin,win32
11155
+ */
10569
11156
  once(event: 'mouse-enter', listener: (event: KeyboardEvent,
10570
11157
  /**
10571
11158
  * The position of the event.
10572
11159
  */
10573
11160
  position: Point) => void): this;
11161
+ /**
11162
+ * @platform darwin,win32
11163
+ */
10574
11164
  addListener(event: 'mouse-enter', listener: (event: KeyboardEvent,
10575
11165
  /**
10576
11166
  * The position of the event.
10577
11167
  */
10578
11168
  position: Point) => void): this;
11169
+ /**
11170
+ * @platform darwin,win32
11171
+ */
10579
11172
  removeListener(event: 'mouse-enter', listener: (event: KeyboardEvent,
10580
11173
  /**
10581
11174
  * The position of the event.
@@ -10591,21 +11184,33 @@ declare namespace Electron {
10591
11184
  * The position of the event.
10592
11185
  */
10593
11186
  position: Point) => void): this;
11187
+ /**
11188
+ * @platform darwin,win32
11189
+ */
10594
11190
  off(event: 'mouse-leave', listener: (event: KeyboardEvent,
10595
11191
  /**
10596
11192
  * The position of the event.
10597
11193
  */
10598
11194
  position: Point) => void): this;
11195
+ /**
11196
+ * @platform darwin,win32
11197
+ */
10599
11198
  once(event: 'mouse-leave', listener: (event: KeyboardEvent,
10600
11199
  /**
10601
11200
  * The position of the event.
10602
11201
  */
10603
11202
  position: Point) => void): this;
11203
+ /**
11204
+ * @platform darwin,win32
11205
+ */
10604
11206
  addListener(event: 'mouse-leave', listener: (event: KeyboardEvent,
10605
11207
  /**
10606
11208
  * The position of the event.
10607
11209
  */
10608
11210
  position: Point) => void): this;
11211
+ /**
11212
+ * @platform darwin,win32
11213
+ */
10609
11214
  removeListener(event: 'mouse-leave', listener: (event: KeyboardEvent,
10610
11215
  /**
10611
11216
  * The position of the event.
@@ -10621,21 +11226,33 @@ declare namespace Electron {
10621
11226
  * The position of the event.
10622
11227
  */
10623
11228
  position: Point) => void): this;
11229
+ /**
11230
+ * @platform darwin,win32
11231
+ */
10624
11232
  off(event: 'mouse-move', listener: (event: KeyboardEvent,
10625
11233
  /**
10626
11234
  * The position of the event.
10627
11235
  */
10628
11236
  position: Point) => void): this;
11237
+ /**
11238
+ * @platform darwin,win32
11239
+ */
10629
11240
  once(event: 'mouse-move', listener: (event: KeyboardEvent,
10630
11241
  /**
10631
11242
  * The position of the event.
10632
11243
  */
10633
11244
  position: Point) => void): this;
11245
+ /**
11246
+ * @platform darwin,win32
11247
+ */
10634
11248
  addListener(event: 'mouse-move', listener: (event: KeyboardEvent,
10635
11249
  /**
10636
11250
  * The position of the event.
10637
11251
  */
10638
11252
  position: Point) => void): this;
11253
+ /**
11254
+ * @platform darwin,win32
11255
+ */
10639
11256
  removeListener(event: 'mouse-move', listener: (event: KeyboardEvent,
10640
11257
  /**
10641
11258
  * The position of the event.
@@ -10654,21 +11271,33 @@ declare namespace Electron {
10654
11271
  * The position of the event.
10655
11272
  */
10656
11273
  position: Point) => void): this;
11274
+ /**
11275
+ * @platform darwin
11276
+ */
10657
11277
  off(event: 'mouse-up', listener: (event: KeyboardEvent,
10658
11278
  /**
10659
11279
  * The position of the event.
10660
11280
  */
10661
11281
  position: Point) => void): this;
11282
+ /**
11283
+ * @platform darwin
11284
+ */
10662
11285
  once(event: 'mouse-up', listener: (event: KeyboardEvent,
10663
11286
  /**
10664
11287
  * The position of the event.
10665
11288
  */
10666
11289
  position: Point) => void): this;
11290
+ /**
11291
+ * @platform darwin
11292
+ */
10667
11293
  addListener(event: 'mouse-up', listener: (event: KeyboardEvent,
10668
11294
  /**
10669
11295
  * The position of the event.
10670
11296
  */
10671
11297
  position: Point) => void): this;
11298
+ /**
11299
+ * @platform darwin
11300
+ */
10672
11301
  removeListener(event: 'mouse-up', listener: (event: KeyboardEvent,
10673
11302
  /**
10674
11303
  * The position of the event.
@@ -10684,21 +11313,33 @@ declare namespace Electron {
10684
11313
  * The bounds of tray icon.
10685
11314
  */
10686
11315
  bounds: Rectangle) => void): this;
11316
+ /**
11317
+ * @platform darwin,win32
11318
+ */
10687
11319
  off(event: 'right-click', listener: (event: KeyboardEvent,
10688
11320
  /**
10689
11321
  * The bounds of tray icon.
10690
11322
  */
10691
11323
  bounds: Rectangle) => void): this;
11324
+ /**
11325
+ * @platform darwin,win32
11326
+ */
10692
11327
  once(event: 'right-click', listener: (event: KeyboardEvent,
10693
11328
  /**
10694
11329
  * The bounds of tray icon.
10695
11330
  */
10696
11331
  bounds: Rectangle) => void): this;
11332
+ /**
11333
+ * @platform darwin,win32
11334
+ */
10697
11335
  addListener(event: 'right-click', listener: (event: KeyboardEvent,
10698
11336
  /**
10699
11337
  * The bounds of tray icon.
10700
11338
  */
10701
11339
  bounds: Rectangle) => void): this;
11340
+ /**
11341
+ * @platform darwin,win32
11342
+ */
10702
11343
  removeListener(event: 'right-click', listener: (event: KeyboardEvent,
10703
11344
  /**
10704
11345
  * The bounds of tray icon.
@@ -11287,26 +11928,6 @@ declare namespace Electron {
11287
11928
  params: ContextMenuParams) => void): this;
11288
11929
  removeListener(event: 'context-menu', listener: (event: Event,
11289
11930
  params: ContextMenuParams) => void): this;
11290
- /**
11291
- * Emitted when the renderer process crashes or is killed.
11292
- *
11293
- * **Deprecated:** This event is superceded by the `render-process-gone` event
11294
- * which contains more information about why the render process disappeared. It
11295
- * isn't always because it crashed. The `killed` boolean can be replaced by
11296
- * checking `reason === 'killed'` when you switch to that event.
11297
- *
11298
- * @deprecated
11299
- */
11300
- on(event: 'crashed', listener: (event: Event,
11301
- killed: boolean) => void): this;
11302
- off(event: 'crashed', listener: (event: Event,
11303
- killed: boolean) => void): this;
11304
- once(event: 'crashed', listener: (event: Event,
11305
- killed: boolean) => void): this;
11306
- addListener(event: 'crashed', listener: (event: Event,
11307
- killed: boolean) => void): this;
11308
- removeListener(event: 'crashed', listener: (event: Event,
11309
- killed: boolean) => void): this;
11310
11931
  /**
11311
11932
  * Emitted when the cursor's type changes. The `type` parameter can be `pointer`,
11312
11933
  * `crosshair`, `hand`, `text`, `wait`, `help`, `e-resize`, `n-resize`,
@@ -14334,6 +14955,22 @@ declare namespace Electron {
14334
14955
  url?: string;
14335
14956
  }
14336
14957
 
14958
+ interface WebUtils extends NodeJS.EventEmitter {
14959
+
14960
+ // Docs: https://electronjs.org/docs/api/web-utils
14961
+
14962
+ /**
14963
+ * The file system path that this `File` object points to. In the case where the
14964
+ * object passed in is not a `File` object an exception is thrown. In the case
14965
+ * where the File object passed in was constructed in JS and is not backed by a
14966
+ * file on disk an empty string is returned.
14967
+ *
14968
+ * This method superceded the previous augmentation to the `File` object with the
14969
+ * `path` property. An example is included below.
14970
+ */
14971
+ getPathForFile(file: File): string;
14972
+ }
14973
+
14337
14974
  interface WebviewTag extends HTMLElement {
14338
14975
 
14339
14976
  // Docs: https://electronjs.org/docs/api/webview-tag
@@ -14502,17 +15139,6 @@ declare namespace Electron {
14502
15139
  */
14503
15140
  addEventListener(event: 'ipc-message', listener: (event: IpcMessageEvent) => void, useCapture?: boolean): this;
14504
15141
  removeEventListener(event: 'ipc-message', listener: (event: IpcMessageEvent) => void): this;
14505
- /**
14506
- * Fired when the renderer process crashes or is killed.
14507
- *
14508
- * **Deprecated:** This event is superceded by the `render-process-gone` event
14509
- * which contains more information about why the render process disappeared. It
14510
- * isn't always because it crashed.
14511
- *
14512
- * @deprecated
14513
- */
14514
- addEventListener(event: 'crashed', listener: (event: DOMEvent) => void, useCapture?: boolean): this;
14515
- removeEventListener(event: 'crashed', listener: (event: DOMEvent) => void): this;
14516
15142
  /**
14517
15143
  * Fired when the renderer process unexpectedly disappears. This is normally
14518
15144
  * because it was crashed or killed.
@@ -16382,24 +17008,27 @@ declare namespace Electron {
16382
17008
  */
16383
17009
  openAtLogin: boolean;
16384
17010
  /**
16385
- * `true` if the app is set to open as hidden at login. This setting is not
16386
- * available on MAS builds.
17011
+ * `true` if the app is set to open as hidden at login. This does not work on macOS
17012
+ * 13 and up.
16387
17013
  *
17014
+ * @deprecated
16388
17015
  * @platform darwin
16389
17016
  */
16390
17017
  openAsHidden: boolean;
16391
17018
  /**
16392
17019
  * `true` if the app was opened at login automatically. This setting is not
16393
- * available on MAS builds.
17020
+ * available on MAS builds or on macOS 13 and up.
16394
17021
  *
17022
+ * @deprecated
16395
17023
  * @platform darwin
16396
17024
  */
16397
17025
  wasOpenedAtLogin: boolean;
16398
17026
  /**
16399
17027
  * `true` if the app was opened as a hidden login item. This indicates that the app
16400
17028
  * should not open any windows at startup. This setting is not available on MAS
16401
- * builds.
17029
+ * builds or on macOS 13 and up.
16402
17030
  *
17031
+ * @deprecated
16403
17032
  * @platform darwin
16404
17033
  */
16405
17034
  wasOpenedAsHidden: boolean;
@@ -16407,11 +17036,18 @@ declare namespace Electron {
16407
17036
  * `true` if the app was opened as a login item that should restore the state from
16408
17037
  * the previous session. This indicates that the app should restore the windows
16409
17038
  * that were open the last time the app was closed. This setting is not available
16410
- * on MAS builds.
17039
+ * on MAS builds or on macOS 13 and up.
16411
17040
  *
17041
+ * @deprecated
16412
17042
  * @platform darwin
16413
17043
  */
16414
17044
  restoreState: boolean;
17045
+ /**
17046
+ * can be one of `not-registered`, `enabled`, `requires-approval`, or `not-found`.
17047
+ *
17048
+ * @platform darwin
17049
+ */
17050
+ status: string;
16415
17051
  /**
16416
17052
  * `true` if app is set to open at login and its run key is not deactivated. This
16417
17053
  * differs from `openAtLogin` as it ignores the `args` option, this property will
@@ -16425,6 +17061,21 @@ declare namespace Electron {
16425
17061
  }
16426
17062
 
16427
17063
  interface LoginItemSettingsOptions {
17064
+ /**
17065
+ * Can be one of `mainAppService`, `agentService`, `daemonService`, or
17066
+ * `loginItemService`. Defaults to `mainAppService`. Only available on macOS 13 and
17067
+ * up. See app.setLoginItemSettings for more information about each type.
17068
+ *
17069
+ * @platform darwin
17070
+ */
17071
+ type?: string;
17072
+ /**
17073
+ * The name of the service. Required if `type` is non-default. Only available on
17074
+ * macOS 13 and up.
17075
+ *
17076
+ * @platform darwin
17077
+ */
17078
+ serviceName?: string;
16428
17079
  /**
16429
17080
  * The executable path to compare against. Defaults to `process.execPath`.
16430
17081
  *
@@ -17353,6 +18004,11 @@ declare namespace Electron {
17353
18004
  * Default false.
17354
18005
  */
17355
18006
  stream?: boolean;
18007
+ /**
18008
+ * Enable V8 code cache for the scheme, only works when `standard` is also set to
18009
+ * true. Default false.
18010
+ */
18011
+ codeCache?: boolean;
17356
18012
  }
17357
18013
 
17358
18014
  interface ProgressBarOptions {
@@ -17646,11 +18302,27 @@ declare namespace Electron {
17646
18302
  * `true` to open the app as hidden. Defaults to `false`. The user can edit this
17647
18303
  * setting from the System Preferences so
17648
18304
  * `app.getLoginItemSettings().wasOpenedAsHidden` should be checked when the app is
17649
- * opened to know the current value. This setting is not available on MAS builds.
18305
+ * opened to know the current value. This setting is not available on MAS build s
18306
+ * or on macOS 13 and up.
17650
18307
  *
18308
+ * @deprecated
17651
18309
  * @platform darwin
17652
18310
  */
17653
18311
  openAsHidden?: boolean;
18312
+ /**
18313
+ * The type of service to add as a login item. Defaults to `mainAppService`. Only
18314
+ * available on macOS 13 and up.
18315
+ *
18316
+ * @platform darwin
18317
+ */
18318
+ type?: ('mainAppService' | 'agentService' | 'daemonService' | 'loginItemService');
18319
+ /**
18320
+ * The name of the service. Required if `type` is non-default. Only available on
18321
+ * macOS 13 and up.
18322
+ *
18323
+ * @platform darwin
18324
+ */
18325
+ serviceName?: string;
17654
18326
  /**
17655
18327
  * The executable to launch at login. Defaults to `process.execPath`.
17656
18328
  *
@@ -17672,8 +18344,7 @@ declare namespace Electron {
17672
18344
  */
17673
18345
  enabled?: boolean;
17674
18346
  /**
17675
- * value name to write into registry. Defaults to the app's AppUserModelId(). Set
17676
- * the app's login item settings.
18347
+ * value name to write into registry. Defaults to the app's AppUserModelId().
17677
18348
  *
17678
18349
  * @platform win32
17679
18350
  */
@@ -17803,27 +18474,6 @@ declare namespace Electron {
17803
18474
  height?: number;
17804
18475
  }
17805
18476
 
17806
- interface TitleBarOverlayOptions {
17807
- /**
17808
- * The CSS color of the Window Controls Overlay when enabled.
17809
- *
17810
- * @platform win32
17811
- */
17812
- color?: string;
17813
- /**
17814
- * The CSS color of the symbols on the Window Controls Overlay when enabled.
17815
- *
17816
- * @platform win32
17817
- */
17818
- symbolColor?: string;
17819
- /**
17820
- * The height of the title bar and Window Controls Overlay in pixels.
17821
- *
17822
- * @platform darwin,win32
17823
- */
17824
- height?: number;
17825
- }
17826
-
17827
18477
  interface TitleOptions {
17828
18478
  /**
17829
18479
  * The font family variant to display, can be `monospaced` or `monospacedDigit`.
@@ -18740,44 +19390,6 @@ declare namespace Electron {
18740
19390
  name: string;
18741
19391
  }
18742
19392
 
18743
- interface RemoteMainInterface {
18744
- app: App;
18745
- autoUpdater: AutoUpdater;
18746
- BrowserView: typeof BrowserView;
18747
- BrowserWindow: typeof BrowserWindow;
18748
- clipboard: Clipboard;
18749
- contentTracing: ContentTracing;
18750
- crashReporter: CrashReporter;
18751
- desktopCapturer: DesktopCapturer;
18752
- dialog: Dialog;
18753
- globalShortcut: GlobalShortcut;
18754
- inAppPurchase: InAppPurchase;
18755
- ipcMain: IpcMain;
18756
- Menu: typeof Menu;
18757
- MenuItem: typeof MenuItem;
18758
- MessageChannelMain: typeof MessageChannelMain;
18759
- nativeImage: typeof NativeImage;
18760
- nativeTheme: NativeTheme;
18761
- net: Net;
18762
- netLog: NetLog;
18763
- Notification: typeof Notification;
18764
- powerMonitor: PowerMonitor;
18765
- powerSaveBlocker: PowerSaveBlocker;
18766
- protocol: Protocol;
18767
- pushNotifications: PushNotifications;
18768
- safeStorage: SafeStorage;
18769
- screen: Screen;
18770
- session: typeof Session;
18771
- ShareMenu: typeof ShareMenu;
18772
- shell: Shell;
18773
- systemPreferences: SystemPreferences;
18774
- TouchBar: typeof TouchBar;
18775
- Tray: typeof Tray;
18776
- utilityProcess: typeof UtilityProcess;
18777
- webContents: typeof WebContents;
18778
- webFrameMain: typeof WebFrameMain;
18779
- }
18780
-
18781
19393
 
18782
19394
 
18783
19395
  namespace Common {
@@ -18929,7 +19541,6 @@ declare namespace Electron {
18929
19541
  type Streams = Electron.Streams;
18930
19542
  type SystemMemoryInfo = Electron.SystemMemoryInfo;
18931
19543
  type TitleBarOverlay = Electron.TitleBarOverlay;
18932
- type TitleBarOverlayOptions = Electron.TitleBarOverlayOptions;
18933
19544
  type TitleOptions = Electron.TitleOptions;
18934
19545
  type ToBitmapOptions = Electron.ToBitmapOptions;
18935
19546
  type ToDataURLOptions = Electron.ToDataURLOptions;
@@ -18972,8 +19583,8 @@ declare namespace Electron {
18972
19583
  type PageRanges = Electron.PageRanges;
18973
19584
  type Params = Electron.Params;
18974
19585
  type Video = Electron.Video;
18975
- type BluetoothDevice = Electron.BluetoothDevice;
18976
19586
  type BrowserWindowConstructorOptions = Electron.BrowserWindowConstructorOptions;
19587
+ type BluetoothDevice = Electron.BluetoothDevice;
18977
19588
  type Certificate = Electron.Certificate;
18978
19589
  type CertificatePrincipal = Electron.CertificatePrincipal;
18979
19590
  type Cookie = Electron.Cookie;
@@ -19258,7 +19869,6 @@ declare namespace Electron {
19258
19869
  type Streams = Electron.Streams;
19259
19870
  type SystemMemoryInfo = Electron.SystemMemoryInfo;
19260
19871
  type TitleBarOverlay = Electron.TitleBarOverlay;
19261
- type TitleBarOverlayOptions = Electron.TitleBarOverlayOptions;
19262
19872
  type TitleOptions = Electron.TitleOptions;
19263
19873
  type ToBitmapOptions = Electron.ToBitmapOptions;
19264
19874
  type ToDataURLOptions = Electron.ToDataURLOptions;
@@ -19301,8 +19911,8 @@ declare namespace Electron {
19301
19911
  type PageRanges = Electron.PageRanges;
19302
19912
  type Params = Electron.Params;
19303
19913
  type Video = Electron.Video;
19304
- type BluetoothDevice = Electron.BluetoothDevice;
19305
19914
  type BrowserWindowConstructorOptions = Electron.BrowserWindowConstructorOptions;
19915
+ type BluetoothDevice = Electron.BluetoothDevice;
19306
19916
  type Certificate = Electron.Certificate;
19307
19917
  type CertificatePrincipal = Electron.CertificatePrincipal;
19308
19918
  type Cookie = Electron.Cookie;
@@ -19381,6 +19991,8 @@ declare namespace Electron {
19381
19991
  type IpcRenderer = Electron.IpcRenderer;
19382
19992
  const webFrame: WebFrame;
19383
19993
  type WebFrame = Electron.WebFrame;
19994
+ const webUtils: WebUtils;
19995
+ type WebUtils = Electron.WebUtils;
19384
19996
  type WebviewTag = Electron.WebviewTag;
19385
19997
  type AboutPanelOptionsOptions = Electron.AboutPanelOptionsOptions;
19386
19998
  type AddRepresentationOptions = Electron.AddRepresentationOptions;
@@ -19521,7 +20133,6 @@ declare namespace Electron {
19521
20133
  type Streams = Electron.Streams;
19522
20134
  type SystemMemoryInfo = Electron.SystemMemoryInfo;
19523
20135
  type TitleBarOverlay = Electron.TitleBarOverlay;
19524
- type TitleBarOverlayOptions = Electron.TitleBarOverlayOptions;
19525
20136
  type TitleOptions = Electron.TitleOptions;
19526
20137
  type ToBitmapOptions = Electron.ToBitmapOptions;
19527
20138
  type ToDataURLOptions = Electron.ToDataURLOptions;
@@ -19564,8 +20175,263 @@ declare namespace Electron {
19564
20175
  type PageRanges = Electron.PageRanges;
19565
20176
  type Params = Electron.Params;
19566
20177
  type Video = Electron.Video;
20178
+ type BrowserWindowConstructorOptions = Electron.BrowserWindowConstructorOptions;
19567
20179
  type BluetoothDevice = Electron.BluetoothDevice;
20180
+ type Certificate = Electron.Certificate;
20181
+ type CertificatePrincipal = Electron.CertificatePrincipal;
20182
+ type Cookie = Electron.Cookie;
20183
+ type CPUUsage = Electron.CPUUsage;
20184
+ type CrashReport = Electron.CrashReport;
20185
+ type CustomScheme = Electron.CustomScheme;
20186
+ type DesktopCapturerSource = Electron.DesktopCapturerSource;
20187
+ type Display = Electron.Display;
20188
+ type Extension = Electron.Extension;
20189
+ type ExtensionInfo = Electron.ExtensionInfo;
20190
+ type FileFilter = Electron.FileFilter;
20191
+ type FilePathWithHeaders = Electron.FilePathWithHeaders;
20192
+ type GPUFeatureStatus = Electron.GPUFeatureStatus;
20193
+ type HIDDevice = Electron.HIDDevice;
20194
+ type InputEvent = Electron.InputEvent;
20195
+ type IOCounters = Electron.IOCounters;
20196
+ type IpcMainEvent = Electron.IpcMainEvent;
20197
+ type IpcMainInvokeEvent = Electron.IpcMainInvokeEvent;
20198
+ type IpcRendererEvent = Electron.IpcRendererEvent;
20199
+ type JumpListCategory = Electron.JumpListCategory;
20200
+ type JumpListItem = Electron.JumpListItem;
20201
+ type KeyboardEvent = Electron.KeyboardEvent;
20202
+ type KeyboardInputEvent = Electron.KeyboardInputEvent;
20203
+ type MemoryInfo = Electron.MemoryInfo;
20204
+ type MemoryUsageDetails = Electron.MemoryUsageDetails;
20205
+ type MimeTypedBuffer = Electron.MimeTypedBuffer;
20206
+ type MouseInputEvent = Electron.MouseInputEvent;
20207
+ type MouseWheelInputEvent = Electron.MouseWheelInputEvent;
20208
+ type NotificationAction = Electron.NotificationAction;
20209
+ type NotificationResponse = Electron.NotificationResponse;
20210
+ type PaymentDiscount = Electron.PaymentDiscount;
20211
+ type Point = Electron.Point;
20212
+ type PostBody = Electron.PostBody;
20213
+ type PrinterInfo = Electron.PrinterInfo;
20214
+ type ProcessMemoryInfo = Electron.ProcessMemoryInfo;
20215
+ type ProcessMetric = Electron.ProcessMetric;
20216
+ type Product = Electron.Product;
20217
+ type ProductDiscount = Electron.ProductDiscount;
20218
+ type ProductSubscriptionPeriod = Electron.ProductSubscriptionPeriod;
20219
+ type ProtocolRequest = Electron.ProtocolRequest;
20220
+ type ProtocolResponse = Electron.ProtocolResponse;
20221
+ type ProtocolResponseUploadData = Electron.ProtocolResponseUploadData;
20222
+ type Rectangle = Electron.Rectangle;
20223
+ type Referrer = Electron.Referrer;
20224
+ type RenderProcessGoneDetails = Electron.RenderProcessGoneDetails;
20225
+ type ResolvedEndpoint = Electron.ResolvedEndpoint;
20226
+ type ResolvedHost = Electron.ResolvedHost;
20227
+ type ScrubberItem = Electron.ScrubberItem;
20228
+ type SegmentedControlSegment = Electron.SegmentedControlSegment;
20229
+ type SerialPort = Electron.SerialPort;
20230
+ type ServiceWorkerInfo = Electron.ServiceWorkerInfo;
20231
+ type SharedWorkerInfo = Electron.SharedWorkerInfo;
20232
+ type SharingItem = Electron.SharingItem;
20233
+ type ShortcutDetails = Electron.ShortcutDetails;
20234
+ type Size = Electron.Size;
20235
+ type Task = Electron.Task;
20236
+ type ThumbarButton = Electron.ThumbarButton;
20237
+ type TraceCategoriesAndOptions = Electron.TraceCategoriesAndOptions;
20238
+ type TraceConfig = Electron.TraceConfig;
20239
+ type Transaction = Electron.Transaction;
20240
+ type UploadData = Electron.UploadData;
20241
+ type UploadFile = Electron.UploadFile;
20242
+ type UploadRawData = Electron.UploadRawData;
20243
+ type USBDevice = Electron.USBDevice;
20244
+ type UserDefaultTypes = Electron.UserDefaultTypes;
20245
+ type WebPreferences = Electron.WebPreferences;
20246
+ type WebRequestFilter = Electron.WebRequestFilter;
20247
+ type WebSource = Electron.WebSource;
20248
+ }
20249
+
20250
+ namespace Utility {
20251
+ type Event<Params extends object = {}> = Electron.Event<Params>;
20252
+ type AboutPanelOptionsOptions = Electron.AboutPanelOptionsOptions;
20253
+ type AddRepresentationOptions = Electron.AddRepresentationOptions;
20254
+ type AdjustSelectionOptions = Electron.AdjustSelectionOptions;
20255
+ type AnimationSettings = Electron.AnimationSettings;
20256
+ type AppDetailsOptions = Electron.AppDetailsOptions;
20257
+ type ApplicationInfoForProtocolReturnValue = Electron.ApplicationInfoForProtocolReturnValue;
20258
+ type AuthenticationResponseDetails = Electron.AuthenticationResponseDetails;
20259
+ type AuthInfo = Electron.AuthInfo;
20260
+ type AutoResizeOptions = Electron.AutoResizeOptions;
20261
+ type BeforeSendResponse = Electron.BeforeSendResponse;
20262
+ type BitmapOptions = Electron.BitmapOptions;
20263
+ type BlinkMemoryInfo = Electron.BlinkMemoryInfo;
20264
+ type BluetoothPairingHandlerHandlerDetails = Electron.BluetoothPairingHandlerHandlerDetails;
20265
+ type BrowserViewConstructorOptions = Electron.BrowserViewConstructorOptions;
20266
+ type CallbackResponse = Electron.CallbackResponse;
20267
+ type CertificateTrustDialogOptions = Electron.CertificateTrustDialogOptions;
20268
+ type ClearCodeCachesOptions = Electron.ClearCodeCachesOptions;
20269
+ type ClearStorageDataOptions = Electron.ClearStorageDataOptions;
20270
+ type ClientRequestConstructorOptions = Electron.ClientRequestConstructorOptions;
20271
+ type CloseOpts = Electron.CloseOpts;
20272
+ type Config = Electron.Config;
20273
+ type ConfigureHostResolverOptions = Electron.ConfigureHostResolverOptions;
20274
+ type ConsoleMessageEvent = Electron.ConsoleMessageEvent;
20275
+ type ContextMenuEvent = Electron.ContextMenuEvent;
20276
+ type ContextMenuParams = Electron.ContextMenuParams;
20277
+ type ContinueActivityDetails = Electron.ContinueActivityDetails;
20278
+ type CookiesGetFilter = Electron.CookiesGetFilter;
20279
+ type CookiesSetDetails = Electron.CookiesSetDetails;
20280
+ type CrashReporterStartOptions = Electron.CrashReporterStartOptions;
20281
+ type CreateFromBitmapOptions = Electron.CreateFromBitmapOptions;
20282
+ type CreateFromBufferOptions = Electron.CreateFromBufferOptions;
20283
+ type CreateInterruptedDownloadOptions = Electron.CreateInterruptedDownloadOptions;
20284
+ type Data = Electron.Data;
20285
+ type DefaultFontFamily = Electron.DefaultFontFamily;
20286
+ type Details = Electron.Details;
20287
+ type DevicePermissionHandlerHandlerDetails = Electron.DevicePermissionHandlerHandlerDetails;
20288
+ type DevtoolsOpenUrlEvent = Electron.DevtoolsOpenUrlEvent;
20289
+ type DidChangeThemeColorEvent = Electron.DidChangeThemeColorEvent;
20290
+ type DidCreateWindowDetails = Electron.DidCreateWindowDetails;
20291
+ type DidFailLoadEvent = Electron.DidFailLoadEvent;
20292
+ type DidFrameFinishLoadEvent = Electron.DidFrameFinishLoadEvent;
20293
+ type DidFrameNavigateEvent = Electron.DidFrameNavigateEvent;
20294
+ type DidNavigateEvent = Electron.DidNavigateEvent;
20295
+ type DidNavigateInPageEvent = Electron.DidNavigateInPageEvent;
20296
+ type DidRedirectNavigationEvent = Electron.DidRedirectNavigationEvent;
20297
+ type DidStartNavigationEvent = Electron.DidStartNavigationEvent;
20298
+ type DisplayBalloonOptions = Electron.DisplayBalloonOptions;
20299
+ type DisplayMediaRequestHandlerHandlerRequest = Electron.DisplayMediaRequestHandlerHandlerRequest;
20300
+ type DownloadURLOptions = Electron.DownloadURLOptions;
20301
+ type EnableNetworkEmulationOptions = Electron.EnableNetworkEmulationOptions;
20302
+ type FeedURLOptions = Electron.FeedURLOptions;
20303
+ type FileIconOptions = Electron.FileIconOptions;
20304
+ type FindInPageOptions = Electron.FindInPageOptions;
20305
+ type FocusOptions = Electron.FocusOptions;
20306
+ type ForkOptions = Electron.ForkOptions;
20307
+ type FoundInPageEvent = Electron.FoundInPageEvent;
20308
+ type FrameCreatedDetails = Electron.FrameCreatedDetails;
20309
+ type FromPartitionOptions = Electron.FromPartitionOptions;
20310
+ type FromPathOptions = Electron.FromPathOptions;
20311
+ type HandlerDetails = Electron.HandlerDetails;
20312
+ type HeadersReceivedResponse = Electron.HeadersReceivedResponse;
20313
+ type HeapStatistics = Electron.HeapStatistics;
20314
+ type HidDeviceAddedDetails = Electron.HidDeviceAddedDetails;
20315
+ type HidDeviceRemovedDetails = Electron.HidDeviceRemovedDetails;
20316
+ type HidDeviceRevokedDetails = Electron.HidDeviceRevokedDetails;
20317
+ type IgnoreMouseEventsOptions = Electron.IgnoreMouseEventsOptions;
20318
+ type ImportCertificateOptions = Electron.ImportCertificateOptions;
20319
+ type Info = Electron.Info;
20320
+ type Input = Electron.Input;
20321
+ type InsertCSSOptions = Electron.InsertCSSOptions;
20322
+ type IpcMessageEvent = Electron.IpcMessageEvent;
20323
+ type Item = Electron.Item;
20324
+ type JumpListSettings = Electron.JumpListSettings;
20325
+ type LoadCommitEvent = Electron.LoadCommitEvent;
20326
+ type LoadExtensionOptions = Electron.LoadExtensionOptions;
20327
+ type LoadFileOptions = Electron.LoadFileOptions;
20328
+ type LoadURLOptions = Electron.LoadURLOptions;
20329
+ type LoginItemSettings = Electron.LoginItemSettings;
20330
+ type LoginItemSettingsOptions = Electron.LoginItemSettingsOptions;
20331
+ type MenuItemConstructorOptions = Electron.MenuItemConstructorOptions;
20332
+ type MessageBoxOptions = Electron.MessageBoxOptions;
20333
+ type MessageBoxReturnValue = Electron.MessageBoxReturnValue;
20334
+ type MessageBoxSyncOptions = Electron.MessageBoxSyncOptions;
20335
+ type MessageDetails = Electron.MessageDetails;
20336
+ type MessageEvent = Electron.MessageEvent;
20337
+ type MoveToApplicationsFolderOptions = Electron.MoveToApplicationsFolderOptions;
20338
+ type NotificationConstructorOptions = Electron.NotificationConstructorOptions;
20339
+ type OnBeforeRedirectListenerDetails = Electron.OnBeforeRedirectListenerDetails;
20340
+ type OnBeforeRequestListenerDetails = Electron.OnBeforeRequestListenerDetails;
20341
+ type OnBeforeSendHeadersListenerDetails = Electron.OnBeforeSendHeadersListenerDetails;
20342
+ type OnCompletedListenerDetails = Electron.OnCompletedListenerDetails;
20343
+ type OnErrorOccurredListenerDetails = Electron.OnErrorOccurredListenerDetails;
20344
+ type OnHeadersReceivedListenerDetails = Electron.OnHeadersReceivedListenerDetails;
20345
+ type OnResponseStartedListenerDetails = Electron.OnResponseStartedListenerDetails;
20346
+ type OnSendHeadersListenerDetails = Electron.OnSendHeadersListenerDetails;
20347
+ type OpenDevToolsOptions = Electron.OpenDevToolsOptions;
20348
+ type OpenDialogOptions = Electron.OpenDialogOptions;
20349
+ type OpenDialogReturnValue = Electron.OpenDialogReturnValue;
20350
+ type OpenDialogSyncOptions = Electron.OpenDialogSyncOptions;
20351
+ type OpenExternalOptions = Electron.OpenExternalOptions;
20352
+ type Options = Electron.Options;
20353
+ type Opts = Electron.Opts;
20354
+ type PageFaviconUpdatedEvent = Electron.PageFaviconUpdatedEvent;
20355
+ type PageTitleUpdatedEvent = Electron.PageTitleUpdatedEvent;
20356
+ type Parameters = Electron.Parameters;
20357
+ type Payment = Electron.Payment;
20358
+ type PermissionCheckHandlerHandlerDetails = Electron.PermissionCheckHandlerHandlerDetails;
20359
+ type PermissionRequestHandlerHandlerDetails = Electron.PermissionRequestHandlerHandlerDetails;
20360
+ type PluginCrashedEvent = Electron.PluginCrashedEvent;
20361
+ type PopupOptions = Electron.PopupOptions;
20362
+ type PreconnectOptions = Electron.PreconnectOptions;
20363
+ type PrintToPDFOptions = Electron.PrintToPDFOptions;
20364
+ type Privileges = Electron.Privileges;
20365
+ type ProgressBarOptions = Electron.ProgressBarOptions;
20366
+ type Provider = Electron.Provider;
20367
+ type PurchaseProductOpts = Electron.PurchaseProductOpts;
20368
+ type ReadBookmark = Electron.ReadBookmark;
20369
+ type RegistrationCompletedDetails = Electron.RegistrationCompletedDetails;
20370
+ type RelaunchOptions = Electron.RelaunchOptions;
20371
+ type RenderProcessGoneEvent = Electron.RenderProcessGoneEvent;
20372
+ type Request = Electron.Request;
20373
+ type ResizeOptions = Electron.ResizeOptions;
20374
+ type ResolveHostOptions = Electron.ResolveHostOptions;
20375
+ type ResourceUsage = Electron.ResourceUsage;
20376
+ type Response = Electron.Response;
20377
+ type Result = Electron.Result;
20378
+ type SaveDialogOptions = Electron.SaveDialogOptions;
20379
+ type SaveDialogReturnValue = Electron.SaveDialogReturnValue;
20380
+ type SaveDialogSyncOptions = Electron.SaveDialogSyncOptions;
20381
+ type SelectHidDeviceDetails = Electron.SelectHidDeviceDetails;
20382
+ type SelectUsbDeviceDetails = Electron.SelectUsbDeviceDetails;
20383
+ type SerialPortRevokedDetails = Electron.SerialPortRevokedDetails;
20384
+ type Settings = Electron.Settings;
20385
+ type SourcesOptions = Electron.SourcesOptions;
20386
+ type SSLConfigConfig = Electron.SSLConfigConfig;
20387
+ type StartLoggingOptions = Electron.StartLoggingOptions;
20388
+ type Streams = Electron.Streams;
20389
+ type SystemMemoryInfo = Electron.SystemMemoryInfo;
20390
+ type TitleBarOverlay = Electron.TitleBarOverlay;
20391
+ type TitleOptions = Electron.TitleOptions;
20392
+ type ToBitmapOptions = Electron.ToBitmapOptions;
20393
+ type ToDataURLOptions = Electron.ToDataURLOptions;
20394
+ type ToPNGOptions = Electron.ToPNGOptions;
20395
+ type TouchBarButtonConstructorOptions = Electron.TouchBarButtonConstructorOptions;
20396
+ type TouchBarColorPickerConstructorOptions = Electron.TouchBarColorPickerConstructorOptions;
20397
+ type TouchBarConstructorOptions = Electron.TouchBarConstructorOptions;
20398
+ type TouchBarGroupConstructorOptions = Electron.TouchBarGroupConstructorOptions;
20399
+ type TouchBarLabelConstructorOptions = Electron.TouchBarLabelConstructorOptions;
20400
+ type TouchBarPopoverConstructorOptions = Electron.TouchBarPopoverConstructorOptions;
20401
+ type TouchBarScrubberConstructorOptions = Electron.TouchBarScrubberConstructorOptions;
20402
+ type TouchBarSegmentedControlConstructorOptions = Electron.TouchBarSegmentedControlConstructorOptions;
20403
+ type TouchBarSliderConstructorOptions = Electron.TouchBarSliderConstructorOptions;
20404
+ type TouchBarSpacerConstructorOptions = Electron.TouchBarSpacerConstructorOptions;
20405
+ type TraceBufferUsageReturnValue = Electron.TraceBufferUsageReturnValue;
20406
+ type UdpPortRange = Electron.UdpPortRange;
20407
+ type UpdateTargetUrlEvent = Electron.UpdateTargetUrlEvent;
20408
+ type UploadProgress = Electron.UploadProgress;
20409
+ type UsbDeviceRevokedDetails = Electron.UsbDeviceRevokedDetails;
20410
+ type USBProtectedClassesHandlerHandlerDetails = Electron.USBProtectedClassesHandlerHandlerDetails;
20411
+ type VisibleOnAllWorkspacesOptions = Electron.VisibleOnAllWorkspacesOptions;
20412
+ type WebContentsAudioStateChangedEventParams = Electron.WebContentsAudioStateChangedEventParams;
20413
+ type WebContentsDidRedirectNavigationEventParams = Electron.WebContentsDidRedirectNavigationEventParams;
20414
+ type WebContentsDidStartNavigationEventParams = Electron.WebContentsDidStartNavigationEventParams;
20415
+ type WebContentsPrintOptions = Electron.WebContentsPrintOptions;
20416
+ type WebContentsWillFrameNavigateEventParams = Electron.WebContentsWillFrameNavigateEventParams;
20417
+ type WebContentsWillNavigateEventParams = Electron.WebContentsWillNavigateEventParams;
20418
+ type WebContentsWillRedirectEventParams = Electron.WebContentsWillRedirectEventParams;
20419
+ type WebRTCUDPPortRange = Electron.WebRTCUDPPortRange;
20420
+ type WebviewTagPrintOptions = Electron.WebviewTagPrintOptions;
20421
+ type WillFrameNavigateEvent = Electron.WillFrameNavigateEvent;
20422
+ type WillNavigateEvent = Electron.WillNavigateEvent;
20423
+ type WillResizeDetails = Electron.WillResizeDetails;
20424
+ type EditFlags = Electron.EditFlags;
20425
+ type Env = Electron.Env;
20426
+ type FoundInPageResult = Electron.FoundInPageResult;
20427
+ type LaunchItems = Electron.LaunchItems;
20428
+ type Margins = Electron.Margins;
20429
+ type MediaFlags = Electron.MediaFlags;
20430
+ type PageRanges = Electron.PageRanges;
20431
+ type Params = Electron.Params;
20432
+ type Video = Electron.Video;
19568
20433
  type BrowserWindowConstructorOptions = Electron.BrowserWindowConstructorOptions;
20434
+ type BluetoothDevice = Electron.BluetoothDevice;
19569
20435
  type Certificate = Electron.Certificate;
19570
20436
  type CertificatePrincipal = Electron.CertificatePrincipal;
19571
20437
  type Cookie = Electron.Cookie;
@@ -19725,6 +20591,8 @@ declare namespace Electron {
19725
20591
  const webFrameMain: typeof WebFrameMain;
19726
20592
  type WebFrameMain = Electron.WebFrameMain;
19727
20593
  type WebRequest = Electron.WebRequest;
20594
+ const webUtils: WebUtils;
20595
+ type WebUtils = Electron.WebUtils;
19728
20596
  type WebviewTag = Electron.WebviewTag;
19729
20597
  type AboutPanelOptionsOptions = Electron.AboutPanelOptionsOptions;
19730
20598
  type AddRepresentationOptions = Electron.AddRepresentationOptions;
@@ -19865,7 +20733,6 @@ declare namespace Electron {
19865
20733
  type Streams = Electron.Streams;
19866
20734
  type SystemMemoryInfo = Electron.SystemMemoryInfo;
19867
20735
  type TitleBarOverlay = Electron.TitleBarOverlay;
19868
- type TitleBarOverlayOptions = Electron.TitleBarOverlayOptions;
19869
20736
  type TitleOptions = Electron.TitleOptions;
19870
20737
  type ToBitmapOptions = Electron.ToBitmapOptions;
19871
20738
  type ToDataURLOptions = Electron.ToDataURLOptions;
@@ -19908,8 +20775,8 @@ declare namespace Electron {
19908
20775
  type PageRanges = Electron.PageRanges;
19909
20776
  type Params = Electron.Params;
19910
20777
  type Video = Electron.Video;
19911
- type BluetoothDevice = Electron.BluetoothDevice;
19912
20778
  type BrowserWindowConstructorOptions = Electron.BrowserWindowConstructorOptions;
20779
+ type BluetoothDevice = Electron.BluetoothDevice;
19913
20780
  type Certificate = Electron.Certificate;
19914
20781
  type CertificatePrincipal = Electron.CertificatePrincipal;
19915
20782
  type Cookie = Electron.Cookie;
@@ -20010,6 +20877,8 @@ declare namespace Electron {
20010
20877
  const webContents: typeof WebContents;
20011
20878
  const webFrame: WebFrame;
20012
20879
  const webFrameMain: typeof WebFrameMain;
20880
+ const webUtils: WebUtils;
20881
+ const Utility: {};
20013
20882
 
20014
20883
  }
20015
20884
 
@@ -20029,11 +20898,16 @@ declare module 'electron/renderer' {
20029
20898
  export = Electron.Renderer;
20030
20899
  }
20031
20900
 
20901
+ declare module 'electron/utility' {
20902
+ export = Electron.Utility;
20903
+ }
20904
+
20032
20905
  interface NodeRequireFunction {
20033
20906
  (moduleName: 'electron'): typeof Electron.CrossProcessExports;
20034
20907
  (moduleName: 'electron/main'): typeof Electron.Main;
20035
20908
  (moduleName: 'electron/common'): typeof Electron.Common;
20036
20909
  (moduleName: 'electron/renderer'): typeof Electron.Renderer;
20910
+ (moduleName: 'electron/utility'): typeof Electron.Utility;
20037
20911
  }
20038
20912
 
20039
20913
  interface NodeRequire {
@@ -20041,6 +20915,7 @@ interface NodeRequire {
20041
20915
  (moduleName: 'electron/main'): typeof Electron.Main;
20042
20916
  (moduleName: 'electron/common'): typeof Electron.Common;
20043
20917
  (moduleName: 'electron/renderer'): typeof Electron.Renderer;
20918
+ (moduleName: 'electron/utility'): typeof Electron.Utility;
20044
20919
  }
20045
20920
 
20046
20921
  interface File {