declare global { interface Window { isElectron: boolean; } } declare global { interface Window { electronApi?: { isElectron: boolean; invoke: (channel: string, ...args: any[]) => Promise; getNotificationStatus: () => Promise<'granted' | 'denied' | 'not-determined' | 'not-supported'>; getPlatform: () => Promise; testNotification: () => Promise<{ success: boolean; reason?: string }>; }; } } export {};