import { ipcRenderer } from 'electron' import type { CliInstallStatus } from '../../shared/cli-install-types' export const cliApi = { getInstallStatus: (): Promise => ipcRenderer.invoke('cli:getInstallStatus'), install: (): Promise => ipcRenderer.invoke('cli:install'), remove: (): Promise => ipcRenderer.invoke('cli:remove'), getWslInstallStatus: (args?: { distro?: string | null }): Promise => ipcRenderer.invoke('cli:getWslInstallStatus', args), installWsl: (args?: { distro?: string | null }): Promise => ipcRenderer.invoke('cli:installWsl', args), removeWsl: (args?: { distro?: string | null }): Promise => ipcRenderer.invoke('cli:removeWsl', args) }