const { contextBridge } = require("electron"); const output = { configure: async () => ({}), send: async () => ({}), sendDmx: async () => ({}), publish: async () => ({}), onStatus: () => () => {}, onTimecode: () => () => {} }; contextBridge.exposeInMainWorld("time4midi", { window: { customFrame: false, minimize: async () => {}, toggleMaximize: async () => false, requestClose: async () => {}, confirmClose: async () => {}, onMaximizedChanged: () => () => {}, onCloseRequested: () => () => {} }, show: { setActive: async () => {} }, project: { save: async () => ({ canceled: true }), load: async () => ({ canceled: true }), loadRecent: async () => ({ canceled: true }) }, mappingLibraries: { loadStore: async () => ({ data: {} }), saveStore: async () => {}, importFile: async () => ({ canceled: true }), exportFile: async () => ({ canceled: true }) }, network: { listInterfaces: async () => [] }, audio: { pickFile: async () => ({ canceled: true }), readFile: async () => ({}), fileUrl: () => "" }, diagnostics: { openWindow: async () => {} }, artnet: output, sacn: output, osc: output, mqtt: output, serial: output, modbusTcp: output, modbusRtu: output, knx: output });