import type { BatchDBOp, DB, DBObject, EncodingOpts } from '@ethereumjs/util'; import type { AbstractLevel } from 'abstract-level'; /** * LevelDB is a thin wrapper around the underlying levelup db, * corresponding to the {@link DB} */ export declare class LevelDB implements DB { _leveldb: AbstractLevel; /** * Initialize a DB instance. If `leveldb` is not provided, DB * defaults to an [in-memory store](https://github.com/Level/memdown). * @param leveldb - An abstract-leveldown compliant store */ constructor(leveldb?: AbstractLevel); /** * @inheritDoc */ get(key: TKey, opts?: EncodingOpts): Promise; /** * @inheritDoc */ put(key: TKey, val: TValue, opts?: {}): Promise; /** * @inheritDoc */ del(key: TKey): Promise; /** * @inheritDoc */ batch(opStack: BatchDBOp[]): Promise; /** * @inheritDoc */ shallowCopy(): DB; open(): Promise; } //# sourceMappingURL=level.d.ts.map