import { NestExpressApplication } from '@nestjs/platform-express'; import { IAsunaContextOpts } from './modules/core'; import './typeorm.fixture'; export interface BootstrapOptions { staticAssets?: string; viewsDir?: string; viewEngine?: string; typeormEntities?: string[]; /** * io - socket.io * redis - 基于 redis 共享 websocket 信息 * ws - websocket */ redisMode?: 'io' | 'redis' | 'ws'; context?: IAsunaContextOpts; renamer?: { from: string; to: string; }[]; migrations?: any[]; } export declare function bootstrap(appModule: any, options?: BootstrapOptions): Promise; /** * 根据环境变量调整要拉取的实体 * @param options */ export declare function resolveTypeormPaths(options?: BootstrapOptions): void;