1 | import { AbstractOptions, ErrorCallback } from "abstract-leveldown";
|
2 |
|
3 | import EncodingDown from "encoding-down";
|
4 |
|
5 | import levelup = require("levelup");
|
6 |
|
7 | declare namespace Level {
|
8 | interface LevelDB<K = any, V = any> extends levelup.LevelUp<EncodingDown<K, V>> {
|
9 | errors: typeof levelup.errors;
|
10 | }
|
11 | interface Constructor {
|
12 | (location: string, options?: AbstractOptions, callback?: ErrorCallback): LevelDB;
|
13 | }
|
14 | }
|
15 |
|
16 | declare const Level: Level.Constructor;
|
17 |
|
18 | export = Level;
|