import { contextBridge, remote } from "electron";

import config from "./lib/config";
import { existsImage, saveImage, addWatermark } from "./lib/watermark";
import { queryStudentCount, replaceStudents, replacePackage } from "./lib/sync";
import { saveToPDF } from "./lib/pdfUtil";
export const electronInWindow = {
  dialog: remote.dialog,
  config,
  addWatermark,
  saveImage,
  queryStudentCount,
  replaceStudents,
  replacePackage,
  existsImage,
  saveToPDF
};

contextBridge.exposeInMainWorld("electron", electronInWindow);
