export interface ElectronAPI {
  minimize: () => Promise<void>
  maximize: () => Promise<void>
  close: () => Promise<void>
  getVersion: () => Promise<string>
  getPath: (name: string) => Promise<string>
  onWindowMaximized: (callback: () => void) => void
  onWindowUnmaximized: (callback: () => void) => void
  removeAllListeners: (channel: string) => void
}

declare global {
  interface Window {
    electronAPI?: ElectronAPI
  }
  
  namespace NodeJS {
    interface Process {
      platform: string
    }
  }
}