UNPKG

549 BTypeScriptView Raw
1import { WebContents } from 'electron';
2import PromiseIpcBase, { Options } from './base';
3export declare class PromiseIpcMain extends PromiseIpcBase {
4 constructor(opts?: Options);
5 send(route: string, webContents: WebContents, ...dataArgs: unknown[]): Promise<unknown>;
6}
7export declare type MainProcessType = PromiseIpcMain & {
8 PromiseIpc?: typeof PromiseIpcMain;
9 PromiseIpcMain?: typeof PromiseIpcMain;
10};
11export declare const PromiseIpc: typeof PromiseIpcMain;
12declare const mainExport: MainProcessType;
13export default mainExport;