const { contextBridge, ipcRenderer } = require('electron'); // Expose protected methods that allow the renderer process to use // the ipcRenderer without exposing the entire object contextBridge.exposeInMainWorld('electronAPI', { configurePlugin: (options) => ipcRenderer.invoke('configure-plugin', options), scheduleNotification: (options) => ipcRenderer.invoke('schedule-notification', options), getDebugInfo: () => ipcRenderer.invoke('get-debug-info'), getPerformanceMetrics: () => ipcRenderer.invoke('get-performance-metrics') });