import { ElectronAppState, dispatch } from '@lobechat/electron-client-ipc'; /** * Service class for interacting with Electron's system-level information and actions. */ class ElectronSystemService { /** * Fetches the application state from the Electron main process. * This includes system information (platform, arch) and user-specific paths. * @returns {Promise} A promise that resolves with the desktop app state. */ async getAppState(): Promise { // Calls the underlying IPC function to get data from the main process return dispatch('getDesktopAppState'); } // Add other system-related service methods here if needed in the future } // Export a singleton instance of the service export const electronSystemService = new ElectronSystemService();