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

contextBridge.exposeInMainWorld('electronAPI', {
    saveImage: (dataUrl, format) => ipcRenderer.invoke('save-image', dataUrl, format),
    openFile: () => ipcRenderer.invoke('open-file'),
    getSettings: () => ipcRenderer.invoke('get-settings'),
    updateSettings: (settings) => ipcRenderer.invoke('update-settings', settings),
});
