import RadixAtomCacheProvider from './RadixAtomCacheProvider'; import { RadixAtom, RadixKeyPair } from '../atom_model'; export default class RadixNEDBAtomCache implements RadixAtomCacheProvider { private db; /** * Creates an instance of radix nedbatom cache. * @param filename File path on disk in Node, path in localStorage in the browser */ constructor(filename: string); /** * Clears all atoms from the cache */ reset(): void; storeAtom: (atom: RadixAtom) => Promise; getAtoms: (keyPair?: RadixKeyPair) => Promise; private asyncDeserialize; deleteAtom(atom: RadixAtom): Promise<{}>; findOne: (opt: any) => Promise<{}>; notExists: (opt: any) => Promise<{}>; find: (opt: any) => Promise<{}>; insert: (opt: any) => Promise<{}>; remove: (opt: any) => Promise<{}>; }