import { VertexModel } from './Vertex'; import { Graph } from './Graph'; import { MongoCollection, MongoModel, MongoModelConstructor } from '../mongodb/MongoModel'; import { MongoCommandResult, MongoDocumentLike, ObjectId } from '../mongodb/MongoTypes'; export declare type CollectionAuditEvents = 'created' | 'updated'; export declare const Collections: Map; export declare class Collection extends MongoCollection { constructor(db: Graph, model: MongoModel | MongoModelConstructor, name?: string); graph(): Graph; insertOne(document: MongoDocumentLike): Promise; updateOne(document: MongoDocumentLike): Promise; updateOneById(id: string | ObjectId, document: MongoDocumentLike): Promise; updateMany(updates: Array): Promise; findOneAndUpdate(filter: any, update: any, fields?: any, sort?: any): Promise; findOneAndUpsert(filter: any, update: any, fields?: any, sort?: any): Promise; findOneNotVerified(filter: any): Promise; findOneAndUpdateVerify(filter: any, updates: any): Promise; findOneAndCreate(updates: any): Promise; protected makeAudit(action: CollectionAuditEvents, updates?: object): object; }