import DataStore from 'nedb'; import PromiseCursor from './promiseCursor'; export default class NeDb { private db; constructor(database: DataStore); loadData(): Promise; compactDatafile(): void; ensureIndex(options: DataStore.EnsureIndexOptions): Promise; removeIndex(fieldName: string): Promise; insert(newDoc: T): Promise; insertMany(newDocs: T[]): Promise; update(query: any, updateQuery: any, options?: DataStore.UpdateOptions): Promise<{ numberOfUpdated: number; upsert: boolean; }>; find(query: any, projection?: any): PromiseCursor; findOne(query: any, projection?: any): Promise; remove(query: any, options?: DataStore.RemoveOptions): Promise; count(query: any): Promise; }