import{Command as l}from"../command";import{CollectionAction as r}from"../common/constant";import{ActionBuilder as e}from"../common/util";import{CollectionBuilder as c}from"./Collection";import{Geo as u}from"./Geo";import{Regex as i}from"./Regex";var p=function(){function t(){this.command=new l;this.Geo=new u}t.prototype.RegExp=function(o){return new i(o)};t.prototype.regexp=function(o){return new i(o)};t.prototype.collection=function(o){return new c(o)};t.prototype.createCollection=function(o){return e.buildCollectionAction(r.create,o)};t.prototype.getCollection=function(o){return e.buildCollectionAction(r.query,o)};t.prototype.listCollection=function(o,n){return e.buildCollectionListQueryAction({$limit:o!==null&&o!==void 0?o:10,$skip:n!==null&&n!==void 0?n:0})};t.prototype.deleteCollection=function(o){return e.buildCollectionAction(r.delete,o)};return t}();export{p as MongoBuilder};