import { ElectronAPI } from '@electron-toolkit/preload' export interface AppApi { request: (payload: { method: string path: string headers?: Record body?: unknown }) => Promise<{ status: number; headers: Record; bodyText: string }> call: (payload: { method: string path: string headers?: Record body?: unknown }) => Promise } declare global { interface Window { electron: ElectronAPI api: AppApi } }