export type Platform = "win32" | "darwin" | "linux" export interface NotificationShowOptions { title: string; body: string; icon?: string; tag?: string; } export interface ElectronNotifications { requestPermission: () => Promise; show: (options: NotificationShowOptions) => Promise; } export interface ElectronInterface { desktop: true, platform: Platform, notifications: ElectronNotifications } declare global { interface Window { electronInterface: ElectronInterface } }