window.electronAPI = {
  signZomeCall: async (s) => o({
    type: "sign-zome-call",
    payload: s
  })
};
async function o(s) {
  return new Promise((n, t) => {
    const a = new MessageChannel();
    top.postMessage(s, "*", [a.port2]), a.port1.onmessage = (e) => {
      e.data.type === "success" ? n(e.data.result) : e.data.type === "error" && t(e.data.error);
    };
  });
}
