import { BrowserWindow } from "electron"; declare global { namespace NodeJS { interface Global { __bin__: string; } } } declare var __bin__: string; declare enum Windows { MAIN_WINDOW = "MAIN_WINDOW", BROWSER_WINDOW = "BROWSER_WINDOW", } declare interface IWindowManager { create: (name: Windows) => Promise; get: (name: Windows) => BrowserWindow | null; has: (name: Windows) => boolean; deleteById: (id: number) => void; } declare interface IWindowListItem { url: string; options: () => Electron.BrowserWindowConstructorOptions; callback: (window: BrowserWindow, windowManager: IWindowManager) => void; } export { IWindowManager, IWindowListItem };