// See the Electron documentation for details on how to use preload scripts:
import { contextBridge } from "electron";
import ipcRendererDelegate from "./internal/ipc-renderer-delegate";
import fsDelegate from "./internal/fs-delegate";
import path from "path";
import { rimraf } from "rimraf";
import utils from "./internal/utils";
import "electron-log/preload";
import "@shared/i18n/preload";
import "@shared/global-context/preload";
import "@shared/app-db/preload";
import "@shared/themepack/preload";
import "@shared/app-state/preload";
import "@shared/app-config/preload"

// https://www.electronjs.org/docs/latest/tutorial/process-model#preload-scripts

contextBridge.exposeInMainWorld("ipcRenderer", ipcRendererDelegate);
contextBridge.exposeInMainWorld("fs", fsDelegate);
contextBridge.exposeInMainWorld("path", path);
contextBridge.exposeInMainWorld("rimraf", rimraf);
contextBridge.exposeInMainWorld("utils", utils);
