import { UserConfig, UserConfigExport, UserConfigFn, UserConfigFnObject, UserConfigFnPromise } from "vite"; //#region src/index.d.ts /** * Vite config wrapper for Lovable sandbox environments. * * Automatically detects sandbox environment and enforces required settings * while acting as a pass-through in local development. * * @param config - Vite configuration object or function * @returns The same config in local mode, or enforced config in sandbox mode * * @example * ```typescript * import { defineConfig } from 'lovite'; * import react from '@vitejs/plugin-react-swc'; * * export default defineConfig({ * plugins: [react()], * server: { * port: 8080, * }, * }); * ``` * * @example Function-based config * ```typescript * export default defineConfig(({ mode }) => ({ * plugins: [react(), mode === 'development' && componentTagger()].filter(Boolean), * })); * ``` */ declare function defineConfig(config: UserConfig): UserConfig; declare function defineConfig(config: Promise): Promise; declare function defineConfig(config: UserConfigFnObject): UserConfigFnObject; declare function defineConfig(config: UserConfigFnPromise): UserConfigFnPromise; declare function defineConfig(config: UserConfigFn): UserConfigFn; declare function defineConfig(config: UserConfigExport): UserConfigExport; //#endregion export { defineConfig };