/// <reference types="vite/client" />

interface Window {
  electron: {
    ipcRenderer: {
      send(channel: string, ...args: any[]): void
      on(channel: string, listener: (event: any, ...args: any[]) => void): void
      once(channel: string, listener: (event: any, ...args: any[]) => void): void
      removeListener(channel: string, listener: (event: any, ...args: any[]) => void): void
      removeAllListeners(channel: string): void
      invoke(channel: string, ...args: any[]): Promise<any>
    }
  }
}