import { IpcMain, IpcRenderer } from 'electron'; declare module '@mizuka-wu/ipc-express' { export type Method = 'get' | 'post' | 'put' | 'patch' | 'delete'; export interface IResponseObject { data: T; statusCode: number; } export interface IpcClientOptions { namespace?: string; } export interface IpcServerOptions { namespace?: string; } export class IpcClient { namespace: string; ipcRenderer: IpcRenderer; methods: Method[]; constructor(ipcRenderer: IpcRenderer, namespace?: string); get(path: string, body?: any): Promise>; post(path: string, body?: any): Promise>; put(path: string, body?: any): Promise>; patch(path: string, body?: any): Promise>; delete(path: string, body?: any): Promise>; } export class IpcServer { ipcMain: IpcMain; namespace: string; listen(expressApp: any, namespace?: string): void; removeAllListeners(): void; constructor(ipcMain: IpcMain); } }