import { DynamicModule } from '@nestjs/common'; import { Document } from 'mongoose'; import { CommentsModuleOptions } from './comments-module-options.interface'; /** * CommentsModule dynamically registers controllers and services * to handle "commenting" functionality for a given resource model. * * Why: Many resources (e.g. blogposts, events, demos) can be commented, * but duplicating controller/service logic for each would be error-prone. * Instead, this module centralizes the commenting-related logic, keeping it * consistent while still allowing customization via options. */ export declare class CommentsModule { /** * Dynamically registers a CommentsController bound to the provided model * and optional route suffix. * * @param {CommentsModuleOptions} options - Configuration for the resource model and route. * @returns {DynamicModule} The dynamically created module definition. */ static forFeature(options: CommentsModuleOptions): DynamicModule; }