import { contextBridge, remote } from "electron";

import env from "./lib/env";
import config from "./lib/config";
import { addWatermark } from "./lib/watermark";
import { queryStudentCount, replaceStudents, replacePackage } from "./lib/sync";
import { receiveMessage } from "./lib/channel";

export const electronInWindow = {
  dialog: remote.dialog,
  env: env,
  config,
  addWatermark,
  queryStudentCount,
  replaceStudents,
  replacePackage,
  receiveMessage,
};

contextBridge.exposeInMainWorld("electron", electronInWindow);
