import * as vite from 'vite'; import { UserConfig } from 'vite'; import { PackageJson } from 'pkg-types'; interface ImportGlobalMetaEnv { readonly VITE_GLOB_APP_NAME: string; readonly VITE_GLOB_APP_TITLE: string; readonly VITE_GLOB_APP_DESC: string; readonly VITE_GLOB_BASE_URL: string; readonly VITE_GLOB_API_URL: string; readonly VITE_GLOB_API_URL_PREFIX?: string; readonly VITE_GLOB_UPLOAD_URL?: string; readonly VITE_GLOB_IMG_URL?: string; readonly VITE_GLOB_USE_MOCK: boolean; readonly VITE_GLOB_DROP_CONSOLE: boolean; } interface ImportMetaEnv extends ImportGlobalMetaEnv { readonly VITE_PORT: number; readonly VITE_AUTH_ROUTE_MODE: 'static' | 'dynamic'; readonly VITE_ROUTE_HOME_PATH: string; readonly VITE_ICON_PREFIX: string; readonly VITE_ICON_LOCAL_PREFIX: string; readonly VITE_SERVICE_ENV?: ApiProxyEnvType; readonly VITE_ENABLE_HTTP_PROXY?: boolean; readonly VITE_ENABLE_ANALYZE?: boolean; readonly VITE_ENABLE_COMPRESS?: boolean; readonly VITE_ENABLE_PWA?: boolean; readonly VITE_ENABLE_VERCEL?: boolean; readonly VITE_BUILD_COMPRESS?: 'gzip' | 'brotli' | 'deflate' | 'deflateRaw' | 'none'; readonly VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE?: boolean; readonly VITE_HASH_ROUTE?: boolean; } type ApiProxyEnvType = 'dev' | 'test' | 'prod' | string; interface ApiProxyEnvConfig { pattern: string; url: string; } type ApiProxyConfig = Record>; interface DefineApplicationConfig { overrides?: UserConfig; apiProxy?: ApiProxyConfig; options?: object; } type DefinePackageConfig = DefineApplicationConfig; interface ApplicationPluginsOptions { root: string; pkg: PackageJson; env: ImportMetaEnv; isBuild: boolean; } type UIType = 'naive' | 'antdv' | 'element' | 'vant'; type UIConfig = Record; declare function defineApplicationConfig(defineApplicationConfig?: DefineApplicationConfig): vite.UserConfigExport; declare function definePackageConfig(definePackageConfig?: DefinePackageConfig): vite.UserConfigExport; export { ApiProxyConfig, ApiProxyEnvConfig, ApiProxyEnvType, ApplicationPluginsOptions, DefineApplicationConfig, DefinePackageConfig, ImportGlobalMetaEnv, ImportMetaEnv, UIConfig, UIType, defineApplicationConfig, definePackageConfig };