type FireFN = (...argu: any[]) => void type Api> = { call: (command: S, ...args: Parameters) => ReturnType callLong: (command: S, ...args: Parameters) => ReturnType callSync: (command: S, ...args: Parameters) => ReturnType send: (command: S, ...argu: Parameters) => ReturnType sendSync: (command: S, ...argu: Parameters) => ReturnType on: (command: S, cb: (event: IpcRendererEvent, ...args: Parameters) => void) => () => void once: (command: S, cb: (event: IpcRendererEvent, ...args: Parameters) => void) => () => void off: (command: S, cb: (event: IpcRendererEvent, ...args: Parameters) => void) => void offAll: (command: S) => void popupMenu: (options: IPopupMenuOption) => void } declare const electron: typeof import("@electron-toolkit/preload").electronAPI declare const api: Api declare const getApi: () => Api interface Window { electron: typeof import("@electron-toolkit/preload").electronAPI api: Api getApi: getApi }