"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const PouchDB = require("pouchdb");
const PouchDBFind = require("pouchdb-find");
const config_1 = require("./config");
// const PouchDB: typeof Pouch = require('pouchdb');
PouchDB.plugin(PouchDBFind);
exports.default = Object.assign(PouchDB.defaults({
    prefix: `http://${config_1.default.get('couchUser')}:${config_1.default.get('couchPassword')}@${config_1.default.get('couchHost')}:${config_1.default.get('couchPort')}/`
}), {
    host: `${config_1.default.get('couchHost')}:${config_1.default.get('couchPort')}`,
    credentials: `${config_1.default.get('couchUser')}:${config_1.default.get('couchPassword')}`
});
//# sourceMappingURL=database.js.map