import { ILifeCycle, IMidwayContainer } from "@midwayjs/core"; import { ILogger } from "@midwayjs/logger"; import { Application } from "egg"; import { BaseController } from "./controller/base"; import { CoolConfig } from "./interface"; import { CoreConfig } from "./entity/core/conf"; import { Repository } from "typeorm"; import { CoreModule } from "./entity/core/module"; import { CoolEventManager } from "."; export declare class AutoConfiguration implements ILifeCycle { coolEventManager: CoolEventManager; coreLogger: ILogger; app: Application; coolConfig: CoolConfig; allConfig: any; ormConfig: any; middlewareConfig: any; coreConfig: Repository; coreModule: Repository; baseController: BaseController; onReady(container?: IMidwayContainer): Promise; onStop?(container?: IMidwayContainer): Promise; routerPrefix(): void; initDataBase(container: IMidwayContainer, sqlPath: string, module: string): Promise; registerObject(container?: IMidwayContainer): Promise; ex(): void; jsFunc(): void; modules(container: IMidwayContainer): Promise; eps(options: any): Promise; crud(container: IMidwayContainer): Promise; /** * CRUD 路由 * @param entityModel * @param controllerOption * @param modelClass * @param container */ CrudRouter(entityModel: any, controllerOption: any, modelClass: any, container: IMidwayContainer, connectionName: any): Promise; /** * 校验参数 * @param modelClass 要校验的模型 * @param params 要检验的参数 */ validateParams(modelClass: any, params: any): void; }