declare const enum IpcChannel { NHENTAI_SAVE_FAVORITES = 'NHENTAI_SAVE_FAVORITES', } type IpcPayload = { id: string; data: unknown; }; type IpcResponse = { id: string; success: boolean; data?: unknown; // just the error message error?: string; }; type IpcClient = { ask: (channel: IpcChannel, data?: unknown) => Promise; }; type IpcHandler = (data?: unknown) => Promise; type IpcController = { get(): IpcController; };