import { LevelUp } from "levelup"; import { AbstractIteratorOptions } from "abstract-leveldown"; export declare class LevelDBTable { private name; protected getLevelDB: (dbName: string) => Promise; private db; constructor(name: string, getLevelDB: (dbName: string) => Promise); cleanCache(): void; triggerInit(): void; close(): Promise; init(): Promise; get(k: string): Promise; getOrNull(k: string): Promise; del(k: string): Promise; put(k: string, record: T): Promise; batchInsert(records: T[], key: keyof T): Promise; batchInsertWithKeyComputing(records: T[], keyComputing: (record: T) => string): Promise; count(options?: AbstractIteratorOptions): Promise; readAll(callback: (entry: T) => void, options?: AbstractIteratorOptions): Promise; readAllKeyValue(callback: (entry: { key: string; value: T; }) => void, options?: AbstractIteratorOptions): Promise; applyAllKeyValue(callback: (entry: { key: string; value: T; }) => Promise, options?: AbstractIteratorOptions): Promise; deleteWhere(options?: AbstractIteratorOptions): Promise<{ key: string; value: T; }[]>; findAllKeys(options?: AbstractIteratorOptions): Promise; findAllValues(options?: AbstractIteratorOptions): Promise; findWhere(filter: (t: T) => boolean): Promise; findWhereTransform(filter: (t: T) => boolean, transform: (t: { key: string; value: T; }) => R): Promise; dump(dumpValue?: (t: { key: string; value: T; }) => any): Promise; }