// This allows TypeScript to pick up the magic constants that's auto-generated by Forge's Vite // plugin that tells the Electron app where to look for the Vite-bundled app code (depending on // whether you're running in development or production). declare const MAIN_WINDOW_VITE_DEV_SERVER_URL: string; declare const MAIN_WINDOW_VITE_NAME: string; // Preload types interface ThemeModeContext { toggle: () => Promise; dark: () => Promise; light: () => Promise; system: () => Promise; current: () => Promise<"dark" | "light" | "system">; } interface ElectronWindow { minimize: () => Promise; maximize: () => Promise; close: () => Promise; } declare interface Window { themeMode: ThemeModeContext; electronWindow: ElectronWindow; }