import { ConfigService } from '@nestjs/config'; import PouchDB from 'pouchdb'; import { BaseRepository, EntityDocument } from '~core/db/baseRepository'; import { ModuleRef } from '@nestjs/core'; import { IFdtoCouchDbReq } from './couchdb-static.interface'; import { Connection } from '~core/db/dbConnection'; export declare class CouchdbStaticService { private readonly configService; private readonly moduleRef; private readonly logger; static USER_DB_NAME: string; constructor(configService: ConfigService, moduleRef: ModuleRef); get baseUrl(): any; get basePublicUrl(): any; getCouchdbServiceFromDbName(dbName: any): Promise; getConnectionForDbName(dbName: any): Promise; getInstance(dbName: string): PouchDB.Database<{}>; replicate(fromDbName: any, toDbName: any, filter?: (doc: T) => boolean): Promise; createDb(dbName: any): Promise>; deleteDb(dbName: any): Promise>; createUser(username: any, password: any): any; getUser(username: any): any; deleteUser(username: any): Promise; authorizeUser(dbName: any, username: any): Promise; resetPermission(dbName: any): Promise; bulkRequest(reqs: IFdtoCouchDbReq[], getRepo: (connection: Connection) => BaseRepository): Promise; }