import {IDBConfig} from "./idb-config"; import {Model} from "../../model/Model"; export interface IdbConnector { init({hostname, url, master_url, username, pwd, db_name, authenticated}: IDBConfig): Promise; upsert(query: object, data: object, collection_name: string): Promise; delete(query: object, collection_name: string): Promise; close(): Promise; list(collection_name: string, ids?: string[]): Promise[]>; delete_db(): Promise; // get(collection_name: string, _ids: string[]): Promise> }