import type { Plugin } from 'vite'; /** * 给妙搭沙箱外壳提供统一的 health endpoint。 * * 协议(飞书文档 - 妙搭应用 Health Check 接口规范,对齐 * `@lark-apaas/coding-preset-vite-react` 的 healthMiddlewarePlugin): * - HTTP connection refused / timeout → dev server 没起来 → 外壳重启沙箱 * - 200 + { ready: true } → 应用已就绪 * - 200 + { ready: false } → 还在启动 * * 不归本接口管: * - vite compile error / runtime error / 资源加载失败 → 浏览器侧自己上报 * * 沙箱外壳探测的是固定根路径 /dev/health,不跟 clientBasePath 走。 */ export declare const HEALTH_ENDPOINT = "/dev/health"; export declare function healthPlugin(): Plugin; //# sourceMappingURL=health-plugin.d.ts.map