// electron-env.d.ts export interface IElectronAPI { startSignalr: (user: any) => Promise; offSignalr: () => Promise; onStop: () => Promise; onInvoke: (str: string, data: any) => Promise; changeLocalStorage: (callBack: Function) => void; onOtherSignalr: (callBack: Function) => void; onSignalr: (callBack: Function) => void; setMainWindowSize: (config: any) => void; getWindowSize: () => any; setViewStatus: (status: 'quit' | 'maximize' | 'minimize' | 'unmaximize' | 'hide' | 'show') => void; getIsMaximized: () => Promise; getAppPath: () => Promise; setWriteText: (text: string) => void; onQuit: (callBack: Function) => void; onUpdate: (callBack: Function) => void; joinNotification: (data: { name: string, body: string }) => void; onDownload: (data: string) => void selectFilePath: (data?: any) => void onFilePath: (callBack: Function) => void; getSources: () => any; quit: (bool) => any; downFile: (callBack: Function) => void; quitAndInstall: (callBack: Function) => void; isOpenWindows: (callBack: Function) => void; setEnv: (str: string) => any; getVersion: () => Promise; isVisible: () => Promise; setRegistry: (uuid: string) => any; getRegistry: () => any; createChildWindow: (str: string) => void; setChildWindow: (config: any) => void; setChildWindowShow: (config: any) => void; closeChildWindow: (key: string) => void; setPosition: (data: ang) => void; windowHandleMessage: (data: any) => {} windowHandleMessageCallBack: (callBack: Function) => void; } declare global { interface Window { electron: IElectronAPI; } }