| 
									
										
										
										
											2020-05-11 01:06:07 +02:00
										 |  |  | declare const BUILDFLAG: (flag: boolean) => boolean; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-02-06 10:27:20 -08:00
										 |  |  | declare namespace NodeJS { | 
					
						
							| 
									
										
										
										
											2023-09-07 00:04:25 +02:00
										 |  |  |   interface ModuleInternal extends NodeJS.Module { | 
					
						
							|  |  |  |     new(id: string, parent?: NodeJS.Module | null): NodeJS.Module; | 
					
						
							|  |  |  |     _load(request: string, parent?: NodeJS.Module | null, isMain?: boolean): any; | 
					
						
							|  |  |  |     _resolveFilename(request: string, parent?: NodeJS.Module | null, isMain?: boolean, options?: { paths: string[] }): string; | 
					
						
							|  |  |  |     _preloadModules(requests: string[]): void; | 
					
						
							|  |  |  |     _nodeModulePaths(from: string): string[]; | 
					
						
							|  |  |  |     _extensions: Record<string, (module: NodeJS.Module, filename: string) => any>; | 
					
						
							|  |  |  |     _cache: Record<string, NodeJS.Module>; | 
					
						
							|  |  |  |     wrapper: [string, string]; | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-02-06 10:27:20 -08:00
										 |  |  |   interface FeaturesBinding { | 
					
						
							| 
									
										
										
										
											2020-03-10 10:39:40 +01:00
										 |  |  |     isBuiltinSpellCheckerEnabled(): boolean; | 
					
						
							| 
									
										
										
										
											2019-02-06 10:27:20 -08:00
										 |  |  |     isPDFViewerEnabled(): boolean; | 
					
						
							|  |  |  |     isFakeLocationProviderEnabled(): boolean; | 
					
						
							|  |  |  |     isPrintingEnabled(): boolean; | 
					
						
							| 
									
										
										
										
											2019-07-24 19:01:08 -04:00
										 |  |  |     isExtensionsEnabled(): boolean; | 
					
						
							| 
									
										
										
										
											2019-03-29 17:32:52 -07:00
										 |  |  |     isComponentBuild(): boolean; | 
					
						
							| 
									
										
										
										
											2019-02-06 10:27:20 -08:00
										 |  |  |   } | 
					
						
							| 
									
										
										
										
											2019-02-12 06:22:33 -08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-03-11 18:07:54 -07:00
										 |  |  |   interface IpcRendererBinding { | 
					
						
							| 
									
										
										
										
											2019-08-02 21:35:04 +02:00
										 |  |  |     send(internal: boolean, channel: string, args: any[]): void; | 
					
						
							|  |  |  |     sendSync(internal: boolean, channel: string, args: any[]): any; | 
					
						
							|  |  |  |     sendToHost(channel: string, args: any[]): void; | 
					
						
							| 
									
										
										
										
											2019-08-24 00:45:50 +02:00
										 |  |  |     invoke<T>(internal: boolean, channel: string, args: any[]): Promise<{ error: string, result: T }>; | 
					
						
							| 
									
										
										
										
											2020-03-11 18:07:54 -07:00
										 |  |  |     postMessage(channel: string, message: any, transferables: MessagePort[]): void; | 
					
						
							| 
									
										
										
										
											2019-08-02 21:35:04 +02:00
										 |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-02-12 06:22:33 -08:00
										 |  |  |   interface V8UtilBinding { | 
					
						
							|  |  |  |     getHiddenValue<T>(obj: any, key: string): T; | 
					
						
							|  |  |  |     setHiddenValue<T>(obj: any, key: string, value: T): void; | 
					
						
							| 
									
										
										
										
											2019-03-10 15:38:44 -07:00
										 |  |  |     requestGarbageCollectionForTesting(): void; | 
					
						
							| 
									
										
										
										
											2021-03-12 16:35:57 +09:00
										 |  |  |     runUntilIdle(): void; | 
					
						
							| 
									
										
										
										
											2020-07-29 19:04:24 -07:00
										 |  |  |     triggerFatalErrorForTesting(): void; | 
					
						
							| 
									
										
										
										
											2019-02-12 06:22:33 -08:00
										 |  |  |   } | 
					
						
							| 
									
										
										
										
											2019-06-15 12:44:18 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-05-25 14:53:23 +02:00
										 |  |  |   type CrashReporterBinding = Omit<Electron.CrashReporter, 'start'> & { | 
					
						
							|  |  |  |     start(submitUrl: string, | 
					
						
							|  |  |  |       uploadToServer: boolean, | 
					
						
							|  |  |  |       ignoreSystemCrashHandler: boolean, | 
					
						
							|  |  |  |       rateLimit: boolean, | 
					
						
							|  |  |  |       compress: boolean, | 
					
						
							|  |  |  |       globalExtra: Record<string, string>, | 
					
						
							|  |  |  |       extra: Record<string, string>, | 
					
						
							|  |  |  |       isNodeProcess: boolean): void; | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-10-06 02:58:31 +02:00
										 |  |  |   interface EnvironmentBinding { | 
					
						
							|  |  |  |     getVar(name: string): string | null; | 
					
						
							|  |  |  |     hasVar(name: string): boolean; | 
					
						
							|  |  |  |     setVar(name: string, value: string): boolean; | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-07-16 11:38:31 -07:00
										 |  |  |   type AsarFileInfo = { | 
					
						
							|  |  |  |     size: number; | 
					
						
							|  |  |  |     unpacked: boolean; | 
					
						
							|  |  |  |     offset: number; | 
					
						
							| 
									
										
										
										
											2021-09-09 14:49:01 -07:00
										 |  |  |     integrity?: { | 
					
						
							|  |  |  |       algorithm: 'SHA256'; | 
					
						
							|  |  |  |       hash: string; | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2020-07-16 11:38:31 -07:00
										 |  |  |   }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   type AsarFileStat = { | 
					
						
							|  |  |  |     size: number; | 
					
						
							|  |  |  |     offset: number; | 
					
						
							| 
									
										
										
										
											2023-09-25 13:17:24 +02:00
										 |  |  |     type: number; | 
					
						
							| 
									
										
										
										
											2020-07-16 11:38:31 -07:00
										 |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   interface AsarArchive { | 
					
						
							|  |  |  |     getFileInfo(path: string): AsarFileInfo | false; | 
					
						
							|  |  |  |     stat(path: string): AsarFileStat | false; | 
					
						
							|  |  |  |     readdir(path: string): string[] | false; | 
					
						
							|  |  |  |     realpath(path: string): string | false; | 
					
						
							|  |  |  |     copyFileOut(path: string): string | false; | 
					
						
							| 
									
										
										
										
											2021-09-09 14:49:01 -07:00
										 |  |  |     getFdAndValidateIntegrityLater(): number | -1; | 
					
						
							| 
									
										
										
										
											2020-07-16 11:38:31 -07:00
										 |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   interface AsarBinding { | 
					
						
							| 
									
										
										
										
											2022-03-22 17:37:55 -07:00
										 |  |  |     Archive: { new(path: string): AsarArchive }; | 
					
						
							| 
									
										
										
										
											2020-07-16 11:38:31 -07:00
										 |  |  |     splitPath(path: string): { | 
					
						
							|  |  |  |       isAsar: false; | 
					
						
							|  |  |  |     } | { | 
					
						
							|  |  |  |       isAsar: true; | 
					
						
							|  |  |  |       asarPath: string; | 
					
						
							|  |  |  |       filePath: string; | 
					
						
							|  |  |  |     }; | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-05-25 14:53:23 +02:00
										 |  |  |   interface NetBinding { | 
					
						
							|  |  |  |     isOnline(): boolean; | 
					
						
							|  |  |  |     isValidHeaderName: (headerName: string) => boolean; | 
					
						
							|  |  |  |     isValidHeaderValue: (headerValue: string) => boolean; | 
					
						
							|  |  |  |     fileURLToFilePath: (url: string) => string; | 
					
						
							|  |  |  |     Net: any; | 
					
						
							|  |  |  |     net: any; | 
					
						
							|  |  |  |     createURLLoader(options: CreateURLLoaderOptions): URLLoader; | 
					
						
							| 
									
										
										
										
											2024-01-04 16:20:37 -05:00
										 |  |  |     resolveHost(host: string, options?: Electron.ResolveHostOptions): Promise<Electron.ResolvedHost>; | 
					
						
							| 
									
										
										
										
											2023-05-25 14:53:23 +02:00
										 |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   interface NotificationBinding { | 
					
						
							|  |  |  |     isSupported(): boolean; | 
					
						
							|  |  |  |     Notification: typeof Electron.Notification; | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-10-08 03:01:23 +02:00
										 |  |  |   interface PowerMonitorBinding extends Electron.PowerMonitor { | 
					
						
							|  |  |  |     createPowerMonitor(): PowerMonitorBinding; | 
					
						
							|  |  |  |     setListeningForShutdown(listening: boolean): void; | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-05-25 14:53:23 +02:00
										 |  |  |   interface SessionBinding { | 
					
						
							|  |  |  |     fromPartition: typeof Electron.Session.fromPartition, | 
					
						
							|  |  |  |     fromPath: typeof Electron.Session.fromPath, | 
					
						
							|  |  |  |     Session: typeof Electron.Session | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-10-13 03:29:08 +02:00
										 |  |  |   interface WebViewManagerBinding { | 
					
						
							| 
									
										
										
										
											2021-05-04 15:59:44 +02:00
										 |  |  |     addGuest(guestInstanceId: number, embedder: Electron.WebContents, guest: Electron.WebContents, webPreferences: Electron.WebPreferences): void; | 
					
						
							| 
									
										
										
										
											2020-10-13 03:29:08 +02:00
										 |  |  |     removeGuest(embedder: Electron.WebContents, guestInstanceId: number): void; | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-05-25 14:53:23 +02:00
										 |  |  |   interface WebFrameMainBinding { | 
					
						
							|  |  |  |     WebFrameMain: typeof Electron.WebFrameMain; | 
					
						
							|  |  |  |     fromId(processId: number, routingId: number): Electron.WebFrameMain; | 
					
						
							| 
									
										
										
										
											2024-10-31 12:07:50 +01:00
										 |  |  |     _fromIdIfExists(processId: number, routingId: number): Electron.WebFrameMain | null; | 
					
						
							|  |  |  |     _fromFtnIdIfExists(frameTreeNodeId: number): Electron.WebFrameMain | null; | 
					
						
							| 
									
										
										
										
											2023-05-25 14:53:23 +02:00
										 |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-04-02 23:34:28 +02:00
										 |  |  |   interface InternalWebPreferences { | 
					
						
							| 
									
										
										
										
											2021-07-29 00:32:53 +02:00
										 |  |  |     isWebView: boolean; | 
					
						
							| 
									
										
										
										
											2021-04-02 23:34:28 +02:00
										 |  |  |     hiddenPage: boolean; | 
					
						
							|  |  |  |     nodeIntegration: boolean; | 
					
						
							|  |  |  |     webviewTag: boolean; | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-04-12 16:35:18 -07:00
										 |  |  |   interface InternalWebFrame extends Electron.WebFrame { | 
					
						
							|  |  |  |     getWebPreference<K extends keyof InternalWebPreferences>(name: K): InternalWebPreferences[K]; | 
					
						
							| 
									
										
										
										
											2021-05-15 09:42:07 +02:00
										 |  |  |     getWebFrameId(window: Window): number; | 
					
						
							|  |  |  |     allowGuestViewElementDefinition(context: object, callback: Function): void; | 
					
						
							| 
									
										
										
										
											2021-04-12 16:35:18 -07:00
										 |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-04-02 23:34:28 +02:00
										 |  |  |   interface WebFrameBinding { | 
					
						
							| 
									
										
										
										
											2021-04-12 16:35:18 -07:00
										 |  |  |     mainFrame: InternalWebFrame; | 
					
						
							| 
									
										
										
										
											2021-04-02 23:34:28 +02:00
										 |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-05-18 10:22:48 -07:00
										 |  |  |   type DataPipe = { | 
					
						
							|  |  |  |     write: (buf: Uint8Array) => Promise<void>; | 
					
						
							|  |  |  |     done: () => void; | 
					
						
							|  |  |  |   }; | 
					
						
							|  |  |  |   type BodyFunc = (pipe: DataPipe) => void; | 
					
						
							|  |  |  |   type CreateURLLoaderOptions = { | 
					
						
							|  |  |  |     method: string; | 
					
						
							|  |  |  |     url: string; | 
					
						
							|  |  |  |     extraHeaders?: Record<string, string>; | 
					
						
							|  |  |  |     useSessionCookies?: boolean; | 
					
						
							| 
									
										
										
										
											2023-02-20 12:57:38 -08:00
										 |  |  |     credentials?: 'include' | 'omit' | 'same-origin'; | 
					
						
							| 
									
										
										
										
											2020-05-18 10:22:48 -07:00
										 |  |  |     body: Uint8Array | BodyFunc; | 
					
						
							|  |  |  |     session?: Electron.Session; | 
					
						
							|  |  |  |     partition?: string; | 
					
						
							| 
									
										
										
										
											2020-05-21 01:28:38 +08:00
										 |  |  |     referrer?: string; | 
					
						
							| 
									
										
										
										
											2023-02-20 12:57:38 -08:00
										 |  |  |     referrerPolicy?: string; | 
					
						
							|  |  |  |     cache?: string; | 
					
						
							| 
									
										
										
										
											2020-11-18 06:25:41 +08:00
										 |  |  |     origin?: string; | 
					
						
							|  |  |  |     hasUserActivation?: boolean; | 
					
						
							|  |  |  |     mode?: string; | 
					
						
							|  |  |  |     destination?: string; | 
					
						
							| 
									
										
										
										
											2023-03-27 10:00:55 -07:00
										 |  |  |     bypassCustomProtocolHandlers?: boolean; | 
					
						
							| 
									
										
										
										
											2020-11-10 09:06:03 -08:00
										 |  |  |   }; | 
					
						
							| 
									
										
										
										
											2020-05-18 10:22:48 -07:00
										 |  |  |   type ResponseHead = { | 
					
						
							|  |  |  |     statusCode: number; | 
					
						
							|  |  |  |     statusMessage: string; | 
					
						
							|  |  |  |     httpVersion: { major: number, minor: number }; | 
					
						
							|  |  |  |     rawHeaders: { key: string, value: string }[]; | 
					
						
							| 
									
										
										
										
											2022-12-21 14:53:29 -08:00
										 |  |  |     headers: Record<string, string[]>; | 
					
						
							| 
									
										
										
										
											2020-05-18 10:22:48 -07:00
										 |  |  |   }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   type RedirectInfo = { | 
					
						
							|  |  |  |     statusCode: number; | 
					
						
							|  |  |  |     newMethod: string; | 
					
						
							|  |  |  |     newUrl: string; | 
					
						
							|  |  |  |     newSiteForCookies: string; | 
					
						
							|  |  |  |     newReferrer: string; | 
					
						
							|  |  |  |     insecureSchemeWasUpgraded: boolean; | 
					
						
							|  |  |  |     isSignedExchangeFallbackRedirect: boolean; | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   interface URLLoader extends EventEmitter { | 
					
						
							|  |  |  |     cancel(): void; | 
					
						
							| 
									
										
										
										
											2020-10-05 17:47:41 -07:00
										 |  |  |     on(eventName: 'data', listener: (event: any, data: ArrayBuffer, resume: () => void) => void): this; | 
					
						
							| 
									
										
										
										
											2020-05-18 10:22:48 -07:00
										 |  |  |     on(eventName: 'response-started', listener: (event: any, finalUrl: string, responseHead: ResponseHead) => void): this; | 
					
						
							|  |  |  |     on(eventName: 'complete', listener: (event: any) => void): this; | 
					
						
							|  |  |  |     on(eventName: 'error', listener: (event: any, netErrorString: string) => void): this; | 
					
						
							|  |  |  |     on(eventName: 'login', listener: (event: any, authInfo: Electron.AuthInfo, callback: (username?: string, password?: string) => void) => void): this; | 
					
						
							|  |  |  |     on(eventName: 'redirect', listener: (event: any, redirectInfo: RedirectInfo, headers: Record<string, string>) => void): this; | 
					
						
							|  |  |  |     on(eventName: 'upload-progress', listener: (event: any, position: number, total: number) => void): this; | 
					
						
							|  |  |  |     on(eventName: 'download-progress', listener: (event: any, current: number) => void): this; | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-02-06 10:27:20 -08:00
										 |  |  |   interface Process { | 
					
						
							| 
									
										
										
										
											2020-10-08 03:01:23 +02:00
										 |  |  |     internalBinding?(name: string): any; | 
					
						
							| 
									
										
										
										
											2019-03-08 23:59:52 +05:30
										 |  |  |     _linkedBinding(name: string): any; | 
					
						
							| 
									
										
										
										
											2020-10-08 03:01:23 +02:00
										 |  |  |     _linkedBinding(name: 'electron_common_asar'): AsarBinding; | 
					
						
							|  |  |  |     _linkedBinding(name: 'electron_common_clipboard'): Electron.Clipboard; | 
					
						
							| 
									
										
										
										
											2020-06-22 20:32:45 -07:00
										 |  |  |     _linkedBinding(name: 'electron_common_command_line'): Electron.CommandLine; | 
					
						
							| 
									
										
										
										
											2020-10-06 02:58:31 +02:00
										 |  |  |     _linkedBinding(name: 'electron_common_environment'): EnvironmentBinding; | 
					
						
							| 
									
										
										
										
											2020-10-08 03:01:23 +02:00
										 |  |  |     _linkedBinding(name: 'electron_common_features'): FeaturesBinding; | 
					
						
							|  |  |  |     _linkedBinding(name: 'electron_common_native_image'): { nativeImage: typeof Electron.NativeImage }; | 
					
						
							| 
									
										
										
										
											2024-01-04 16:20:37 -05:00
										 |  |  |     _linkedBinding(name: 'electron_common_net'): NetBinding; | 
					
						
							| 
									
										
										
										
											2020-10-08 03:01:23 +02:00
										 |  |  |     _linkedBinding(name: 'electron_common_shell'): Electron.Shell; | 
					
						
							|  |  |  |     _linkedBinding(name: 'electron_common_v8_util'): V8UtilBinding; | 
					
						
							|  |  |  |     _linkedBinding(name: 'electron_browser_app'): { app: Electron.App, App: Function }; | 
					
						
							|  |  |  |     _linkedBinding(name: 'electron_browser_auto_updater'): { autoUpdater: Electron.AutoUpdater }; | 
					
						
							| 
									
										
										
										
											2023-05-25 14:53:23 +02:00
										 |  |  |     _linkedBinding(name: 'electron_browser_crash_reporter'): CrashReporterBinding; | 
					
						
							| 
									
										
										
										
											2024-09-11 09:57:39 -07:00
										 |  |  |     _linkedBinding(name: 'electron_browser_desktop_capturer'): { createDesktopCapturer(): ElectronInternal.DesktopCapturer; isDisplayMediaSystemPickerAvailable(): boolean; }; | 
					
						
							| 
									
										
										
										
											2023-05-25 14:53:23 +02:00
										 |  |  |     _linkedBinding(name: 'electron_browser_event_emitter'): { setEventEmitterPrototype(prototype: Object): void; }; | 
					
						
							| 
									
										
										
										
											2020-10-08 03:01:23 +02:00
										 |  |  |     _linkedBinding(name: 'electron_browser_global_shortcut'): { globalShortcut: Electron.GlobalShortcut }; | 
					
						
							|  |  |  |     _linkedBinding(name: 'electron_browser_image_view'): { ImageView: any }; | 
					
						
							|  |  |  |     _linkedBinding(name: 'electron_browser_in_app_purchase'): { inAppPurchase: Electron.InAppPurchase }; | 
					
						
							| 
									
										
										
										
											2023-05-25 14:53:23 +02:00
										 |  |  |     _linkedBinding(name: 'electron_browser_message_port'): { createPair(): { port1: Electron.MessagePortMain, port2: Electron.MessagePortMain }; }; | 
					
						
							| 
									
										
										
										
											2022-06-21 09:34:56 +02:00
										 |  |  |     _linkedBinding(name: 'electron_browser_native_theme'): { nativeTheme: Electron.NativeTheme }; | 
					
						
							| 
									
										
										
										
											2023-05-25 14:53:23 +02:00
										 |  |  |     _linkedBinding(name: 'electron_browser_notification'): NotificationBinding; | 
					
						
							| 
									
										
										
										
											2020-10-08 03:01:23 +02:00
										 |  |  |     _linkedBinding(name: 'electron_browser_power_monitor'): PowerMonitorBinding; | 
					
						
							|  |  |  |     _linkedBinding(name: 'electron_browser_power_save_blocker'): { powerSaveBlocker: Electron.PowerSaveBlocker }; | 
					
						
							| 
									
										
										
										
											2022-07-12 08:38:49 -07:00
										 |  |  |     _linkedBinding(name: 'electron_browser_push_notifications'): { pushNotifications: Electron.PushNotifications }; | 
					
						
							| 
									
										
										
										
											2021-08-05 15:12:54 -07:00
										 |  |  |     _linkedBinding(name: 'electron_browser_safe_storage'): { safeStorage: Electron.SafeStorage }; | 
					
						
							| 
									
										
										
										
											2023-05-25 14:53:23 +02:00
										 |  |  |     _linkedBinding(name: 'electron_browser_session'): SessionBinding; | 
					
						
							| 
									
										
										
										
											2022-06-21 09:34:56 +02:00
										 |  |  |     _linkedBinding(name: 'electron_browser_screen'): { createScreen(): Electron.Screen }; | 
					
						
							| 
									
										
										
										
											2020-10-08 03:01:23 +02:00
										 |  |  |     _linkedBinding(name: 'electron_browser_system_preferences'): { systemPreferences: Electron.SystemPreferences }; | 
					
						
							|  |  |  |     _linkedBinding(name: 'electron_browser_tray'): { Tray: Electron.Tray }; | 
					
						
							|  |  |  |     _linkedBinding(name: 'electron_browser_view'): { View: Electron.View }; | 
					
						
							|  |  |  |     _linkedBinding(name: 'electron_browser_web_contents_view'): { WebContentsView: typeof Electron.WebContentsView }; | 
					
						
							| 
									
										
										
										
											2020-10-13 03:29:08 +02:00
										 |  |  |     _linkedBinding(name: 'electron_browser_web_view_manager'): WebViewManagerBinding; | 
					
						
							| 
									
										
										
										
											2023-05-25 14:53:23 +02:00
										 |  |  |     _linkedBinding(name: 'electron_browser_web_frame_main'): WebFrameMainBinding; | 
					
						
							| 
									
										
										
										
											2020-10-08 03:01:23 +02:00
										 |  |  |     _linkedBinding(name: 'electron_renderer_crash_reporter'): Electron.CrashReporter; | 
					
						
							|  |  |  |     _linkedBinding(name: 'electron_renderer_ipc'): { ipc: IpcRendererBinding }; | 
					
						
							| 
									
										
										
										
											2021-04-02 23:34:28 +02:00
										 |  |  |     _linkedBinding(name: 'electron_renderer_web_frame'): WebFrameBinding; | 
					
						
							| 
									
										
										
										
											2019-02-06 10:27:20 -08:00
										 |  |  |     log: NodeJS.WriteStream['write']; | 
					
						
							| 
									
										
										
										
											2019-02-12 06:22:33 -08:00
										 |  |  |     activateUvLoop(): void; | 
					
						
							| 
									
										
										
										
											2019-02-18 12:47:07 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |     // Additional events
 | 
					
						
							|  |  |  |     once(event: 'document-start', listener: () => any): this; | 
					
						
							|  |  |  |     once(event: 'document-end', listener: () => any): this; | 
					
						
							| 
									
										
										
										
											2019-06-03 17:03:59 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  |     // Additional properties
 | 
					
						
							|  |  |  |     _firstFileName?: string; | 
					
						
							| 
									
										
										
										
											2022-10-20 14:49:49 +09:00
										 |  |  |     _serviceStartupScript: string; | 
					
						
							| 
									
										
										
										
											2023-09-11 11:51:14 -07:00
										 |  |  |     _getOrCreateArchive?: (path: string) => NodeJS.AsarArchive | null; | 
					
						
							| 
									
										
										
										
											2019-07-15 21:13:32 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  |     helperExecPath: string; | 
					
						
							| 
									
										
										
										
											2022-03-28 15:37:35 -06:00
										 |  |  |     mainModule?: NodeJS.Module | undefined; | 
					
						
							| 
									
										
										
										
											2023-08-30 17:38:07 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  |     appCodeLoaded?: () => void; | 
					
						
							| 
									
										
										
										
											2019-02-06 10:27:20 -08:00
										 |  |  |   } | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2019-02-16 17:06:30 -08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-11-05 14:13:02 -08:00
										 |  |  | declare module NodeJS { | 
					
						
							| 
									
										
										
										
											2019-02-19 17:05:14 +00:00
										 |  |  |   interface Global { | 
					
						
							|  |  |  |     require: NodeRequire; | 
					
						
							|  |  |  |     module: NodeModule; | 
					
						
							|  |  |  |     __filename: string; | 
					
						
							|  |  |  |     __dirname: string; | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-07-17 19:23:52 +02:00
										 |  |  | interface ContextMenuItem { | 
					
						
							|  |  |  |   id: number; | 
					
						
							|  |  |  |   label: string; | 
					
						
							|  |  |  |   type: 'normal' | 'separator' | 'subMenu' | 'checkbox'; | 
					
						
							|  |  |  |   checked: boolean; | 
					
						
							|  |  |  |   enabled: boolean; | 
					
						
							|  |  |  |   subItems: ContextMenuItem[]; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-02-16 17:06:30 -08:00
										 |  |  | declare interface Window { | 
					
						
							| 
									
										
										
										
											2019-02-19 17:05:14 +00:00
										 |  |  |   ELECTRON_DISABLE_SECURITY_WARNINGS?: boolean; | 
					
						
							|  |  |  |   ELECTRON_ENABLE_SECURITY_WARNINGS?: boolean; | 
					
						
							| 
									
										
										
										
											2019-02-26 02:10:26 +00:00
										 |  |  |   InspectorFrontendHost?: { | 
					
						
							| 
									
										
										
										
											2019-07-17 19:23:52 +02:00
										 |  |  |     showContextMenuAtPoint: (x: number, y: number, items: ContextMenuItem[]) => void | 
					
						
							| 
									
										
										
										
											2019-02-26 02:10:26 +00:00
										 |  |  |   }; | 
					
						
							|  |  |  |   DevToolsAPI?: { | 
					
						
							|  |  |  |     contextMenuItemSelected: (id: number) => void; | 
					
						
							|  |  |  |     contextMenuCleared: () => void | 
					
						
							|  |  |  |   }; | 
					
						
							|  |  |  |   UI?: { | 
					
						
							|  |  |  |     createFileSelectorElement: (callback: () => void) => HTMLSpanElement | 
					
						
							|  |  |  |   }; | 
					
						
							|  |  |  |   Persistence?: { | 
					
						
							|  |  |  |     FileSystemWorkspaceBinding: { | 
					
						
							|  |  |  |       completeURL: (project: string, path: string) => string; | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2019-03-07 15:26:23 -08:00
										 |  |  |   }; | 
					
						
							| 
									
										
										
										
											2021-01-29 21:41:59 +01:00
										 |  |  |   WebView: typeof ElectronInternal.WebViewElement; | 
					
						
							| 
									
										
										
										
											2021-01-25 02:31:25 +01:00
										 |  |  |   trustedTypes: TrustedTypePolicyFactory; | 
					
						
							| 
									
										
										
										
											2019-03-07 15:26:23 -08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-09-05 04:22:41 +02:00
										 |  |  | // https://github.com/electron/electron/blob/main/docs/tutorial/message-ports.md#extension-close-event
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | interface MessagePort { | 
					
						
							|  |  |  |   onclose: () => void; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-01-25 02:31:25 +01:00
										 |  |  | // https://w3c.github.io/webappsec-trusted-types/dist/spec/#trusted-types
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | type TrustedHTML = string; | 
					
						
							|  |  |  | type TrustedScript = string; | 
					
						
							|  |  |  | type TrustedScriptURL = string; | 
					
						
							|  |  |  | type TrustedType = TrustedHTML | TrustedScript | TrustedScriptURL; | 
					
						
							|  |  |  | type StringContext = 'TrustedHTML' | 'TrustedScript' | 'TrustedScriptURL'; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // https://w3c.github.io/webappsec-trusted-types/dist/spec/#typedef-trustedtypepolicy
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | interface TrustedTypePolicy { | 
					
						
							|  |  |  |   createHTML(input: string, ...arguments: any[]): TrustedHTML; | 
					
						
							|  |  |  |   createScript(input: string, ...arguments: any[]): TrustedScript; | 
					
						
							|  |  |  |   createScriptURL(input: string, ...arguments: any[]): TrustedScriptURL; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // https://w3c.github.io/webappsec-trusted-types/dist/spec/#typedef-trustedtypepolicyoptions
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | interface TrustedTypePolicyOptions { | 
					
						
							|  |  |  |   createHTML?: (input: string, ...arguments: any[]) => TrustedHTML; | 
					
						
							|  |  |  |   createScript?: (input: string, ...arguments: any[]) => TrustedScript; | 
					
						
							|  |  |  |   createScriptURL?: (input: string, ...arguments: any[]) => TrustedScriptURL; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // https://w3c.github.io/webappsec-trusted-types/dist/spec/#typedef-trustedtypepolicyfactory
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | interface TrustedTypePolicyFactory { | 
					
						
							|  |  |  |   createPolicy(policyName: string, policyOptions: TrustedTypePolicyOptions): TrustedTypePolicy | 
					
						
							|  |  |  |   isHTML(value: any): boolean; | 
					
						
							|  |  |  |   isScript(value: any): boolean; | 
					
						
							|  |  |  |   isScriptURL(value: any): boolean; | 
					
						
							|  |  |  |   readonly emptyHTML: TrustedHTML; | 
					
						
							|  |  |  |   readonly emptyScript: TrustedScript; | 
					
						
							|  |  |  |   getAttributeType(tagName: string, attribute: string, elementNs?: string, attrNs?: string): StringContext | null; | 
					
						
							|  |  |  |   getPropertyType(tagName: string, property: string, elementNs?: string): StringContext | null; | 
					
						
							|  |  |  |   readonly defaultPolicy: TrustedTypePolicy | null; | 
					
						
							|  |  |  | } |