const { contextBridge, ipcRenderer } = require('electron');

contextBridge.exposeInMainWorld('electronDesktop', {
  showMessage: (options) => ipcRenderer.invoke('desktop:show-message', options),
  exportPdf: (payload) => ipcRenderer.invoke('desktop:export-pdf', payload),
  httpRequest: (payload) => ipcRenderer.invoke('desktop:http-request', payload),
  getRuntime: () => 'electron',
});
