import { SchemaOptions } from '@nestjs/mongoose'; /** * Extended SchemaOptions to include `criticalKeys` for duplicate checking. */ export interface ExtendedSchemaOptions extends SchemaOptions { criticalKeys?: string[]; } /** * Custom decorator that wraps NestJS's @Schema * and stores criticalKeys on the schema options. */ export declare function SchemaWithCriticalKeys(options?: ExtendedSchemaOptions): ClassDecorator;