type EntryInput = string | string[] | Record; interface ViteBuildConfig { build?: { rollupOptions?: { input?: EntryInput; }; lib?: { entry?: EntryInput; }; }; } type ConfigEnv = { command: string; mode: string; }; type Section = ViteBuildConfig | ((env: ConfigEnv) => ViteBuildConfig | Promise); type ElectronViteConfigObject = { main?: Section; preload?: Section; renderer?: Section; }; export type ElectronViteConfig = ElectronViteConfigObject | ((env: ConfigEnv) => ElectronViteConfigObject | Promise); export {};