// Generated by dts-bundle-generator v9.5.1 import { AnyRouter, inferRouterContext } from '@trpc/server'; import { BrowserWindow, IpcMainInvokeEvent } from 'electron'; export declare const ELECTRON_TRPC_CHANNEL = "electron-trpc"; export interface CreateContextOptions { event: IpcMainInvokeEvent; } export type Awaitable = T | Promise; declare class IPCHandler { #private; constructor({ createContext, router, windows, }: { createContext?: (opts: CreateContextOptions) => Awaitable>; router: TRouter; windows?: BrowserWindow[]; }); attachWindow(win: BrowserWindow): void; detachWindow(win: BrowserWindow, webContentsId?: number): void; } export declare const createIPCHandler: ({ createContext, router, windows, }: { createContext?: (opts: CreateContextOptions) => Promise>; router: TRouter; windows?: Electron.BrowserWindow[]; }) => IPCHandler; export declare const exposeElectronTRPC: () => void; export {};