import { IConfigRecord } from "./models/iconfig-record"; import { INeDb } from "./nedb"; export declare class DatabaseService { private static _db; private _privateDir; private readonly DB_NAME; /** * This will get the private dir */ readonly privateDir: string; /** * Returns the instance of the database */ readonly db: INeDb; /** * initialising the database */ initDb(): Promise; /** * Clear the database */ clearDb(): Promise; /** * Get the record */ getRecord(): Promise; /** * Update the database * @param query The query * @param update The update query */ updateDb(query: IConfigRecord, update: IConfigRecord): Promise; /** * Insert into the config record * @param doc the new iconfig record */ insert(doc: IConfigRecord): Promise; }