import { Constructor } from '@dolittle/types';
import { Document } from 'mongodb';
declare module 'mongodb' {
    interface Db {
        /**
         * Returns a reference to a MongoDB Collection. If it does not exist it will be created implicitly.
         *
         * @param name - The collection name we wish to access.
         * @returns Return the new Collection instance.
         */
        collection<TSchema extends Document>(type: Constructor<TSchema>, options?: CollectionOptions): Collection<TSchema>;
    }
}
//# sourceMappingURL=DbExtensions.d.ts.map