"use strict"; const { contextBridge, ipcRenderer } = require("electron"); contextBridge.exposeInMainWorld("licenseApi", Object.freeze({ read: () => ipcRenderer.invoke("license:read"), showLicense: payload => ipcRenderer.invoke("license:show", payload), accept: payload => ipcRenderer.invoke("license:accept", payload), decline: () => ipcRenderer.invoke("license:decline") }));