import type { INestApplication } from '@nestjs/common'; import type { Express } from 'express'; export interface NestAppResult { app: INestApplication; express: Express; } /** * 创建 Nest 应用(内嵌模式):不 listen,不设置 globalPrefix。 * Gateway 将返回的 express 挂到 /server-api,请求路径会剥掉前缀后进入 Nest。 */ export declare function createNestAppEmbedded(): Promise; /** * 独立启动时使用:设置 globalPrefix 并监听端口。 * 先执行桌面配置初始化,保证首次启动即有 local provider 与缺省模型。 */ export declare function createNestAppStandalone(port?: number): Promise;