import { DynamicModule, Type } from "@nestjs/common"; import { AiSourceQueryProvider } from "../common/repositories/ai-source-query.provider"; import { SecurityService } from "./security/services/security.service"; /** * Options for CoreModule.forRoot() */ export interface CoreModuleOptions { /** * Queue IDs to register with BullMQ. * The library's CHUNK queue is always registered automatically. * Pass additional queue IDs here for app-specific queues. */ queueIds?: string[]; /** * Optional custom SecurityService subclass. * When provided, the DI token SecurityService resolves to this subclass. * Default undefined keeps the base SecurityService (neural-erp behavior unchanged). */ securityService?: Type; /** Optional custom AiSourceQueryProvider. Default keeps the generic * company-scoped behavior (neural-erp/phlow unchanged). */ aiSourceQuery?: Type; /** Set false to skip the library migrator (app provides its own). Default true. */ migrator?: boolean; } /** * CoreModule - Centralized module that provides all core infrastructure * * All services use ConfigService for configuration - no static baseConfig usage. * * Usage: * ```typescript * @Module({ * imports: [ * CoreModule.forRoot({ * queueIds: ['my-queue-1', 'my-queue-2'], * }), * ], * }) * export class AppModule {} * ``` */ export declare class CoreModule { /** * Configure CoreModule with all core infrastructure modules */ static forRoot(options?: CoreModuleOptions): DynamicModule; } //# sourceMappingURL=core.module.d.ts.map