///
interface ImportMetaEnv {
/** 后端 API 根地址,如 http://127.0.0.1:8466;默认为空 = 同源(embed 部署) */
readonly VITE_API_BASE?: string
/** 置 1 时 dev server 启用内置 mock(无需启动后端) */
readonly VITE_MOCK?: string
/** 路由模式,默认 history(后端 NoRoute 已做 SPA 回退);后端无回退时设 'hash' */
readonly VITE_ROUTER_MODE?: 'history' | 'hash'
}
interface ImportMeta {
readonly env: ImportMetaEnv
}
declare module 'swagger-ui-dist/swagger-ui-es-bundle.js' {
const SwaggerUI: (options: Record) => unknown
export default SwaggerUI
}