import { ElectronAPI } from '@electron-toolkit/preload' declare global { interface Window { electron: ElectronAPI api: { getAppInfo: () => Promise<{ version: string isPackaged: boolean appPath: string }> checkForUpdate: () => void openWebsite: (url: string) => void setProxy: (proxy: string | undefined) => void saveFile: (path: string, content: string) => void setTheme: (theme: 'light' | 'dark') => void } } }