export interface IpcRenderer { invoke ( channel , ... args ) : Promise < any > ; on ( channel , listener ) : this ; once ( channel , listener ) : this ; postMessage ( channel , message , transfer ? ) : void ; removeAllListeners ( channel ) : this ; removeListener ( channel , listener ) : this ; send ( channel , ... args ) : void ; sendSync ( channel , ... args ) : any ; sendTo ( webContentsId , channel , ... args ) : void ; sendToHost ( channel , ... args ) : void ; } export interface IpcRendererEvent extends Event { ports : MessagePort [ ] ; sender : IpcRenderer ; senderId : number ; } export interface FileFilter { extensions : string [ ] ; name : string ; } export interface OpenDialogOptions { title ? : string ; defaultPath ? : string ; buttonLabel ? : string ; filters ? : FileFilter [ ] ; properties ? : Array < 'openFile' | 'openDirectory' | 'multiSelections' | 'showHiddenFiles' | 'createDirectory' | 'promptToCreate' | 'noResolveAliases' | 'treatPackageAsDirectory' | 'dontAddToRecent' > ; message ? : string ; securityScopedBookmarks ? : boolean ; } export interface OpenDialogReturnValue { canceled : boolean ; filePaths : string [ ] ; bookmarks ? : string [ ] ; }