/// 
import * as plugins from './smartdata.plugins';
import { Db } from './smartdata.classes.db';
export declare class DbCollection {
    collection: plugins.mongodb.Collection;
    constructor(nameArg: string, dbArg: Db);
    /**
     * adds a validation function that all newly inserted and updated objects have to pass
     */
    addObjectValidation(funcArg: any): void;
    /**
     * finds an object in the DbCollection
     */
    find(docMatchArg: T | any): plugins.q.Promise;
    /**
     * inserts  object into the DbCollection
     */
    insertOne(docArg: T): plugins.q.Promise;
    /**
     * inserts many objects at once into the DbCollection
     */
    insertMany(docArrayArg: T[]): plugins.q.Promise;
    private checkDoc(doc);
}