import { ClientSession, InsertManyOptions } from 'mongoose'; import { META } from '../../definitions'; import { RetryExecutor } from '../infrastructure/retry'; /** * Create operations for repository (create, insertMany) */ export interface CrudCreateConfig { modelName: string; logger?: any; } export declare class CrudCreateOperations { private readonly config; private readonly retryExecutor; constructor(config: CrudCreateConfig, retryExecutor: RetryExecutor); /** * Creates a new document */ create(entity: Partial, session?: ClientSession, meta?: META): Promise; /** * Inserts multiple documents */ insertMany(docs: Array>, options?: InsertManyOptions & { lean: true; }, meta?: META): Promise; }