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