import { IpcRenderer } from 'electron'; import fse from 'fs-extra'; import path from 'path'; import compressing from 'compressing'; import childProcess from 'child_process'; export interface ContextBridgeApi { __dirname: string; userId: string; userName: string; fse: typeof fse; path: typeof path; buffer: typeof Buffer; compressing: typeof compressing; childProcess: typeof childProcess; ipcRenderer: IpcRenderer; removeLoading: () => void; }