import { CountDocumentsOptions, Filter, UpdateFilter, UpdateOptions, UpdateResult } from 'mongodb'; import { MongoCollection, MongoCollectionOptions, MongoDatabase, MongoDocument } from './mongodb'; import { LockOptions } from './types'; export declare class Collection extends MongoCollection { private readonly logger; constructor(db: MongoDatabase, name?: string, options?: MongoCollectionOptions); countDocuments(filter?: Filter, options?: CountDocumentsOptions): Promise; upsert(filter: Filter, update: UpdateFilter | Partial, options?: UpdateOptions | undefined): Promise>; withDocumentLock(options: LockOptions): Promise>; private lock; private unlock; private unlockWithResult; }