import * as NeDB from "nedb"; export declare const Datastore: (options: NeDB.DataStoreOptions) => INeDb; export interface INeDb { loadDatabase(): Promise; insert(newDoc: T): Promise; find(query: any, projection?: T): Promise; findOne(query: any, projection?: T): Promise; count(query: any): Promise; update(query: any, updateQuery: any, options?: Nedb.UpdateOptions): Promise; remove(query: any, options?: Nedb.RemoveOptions): Promise; ensureIndex(options: Nedb.EnsureIndexOptions): Promise; removeIndex(fieldName: string): Promise; }