// electron-env.d.ts export interface IElectronAPI { setMainWindowSize: (config: any) => void; setViewStatus: (status: 'quit' | 'maximize' | 'minimize' | 'unmaximize') => void; getIsMaximized: () => 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: () => void onFilePath: (callBack: Function) => void; } declare global { interface Window { electron: IElectronAPI; } }