export declare const uintLen = 8; /** * Encode a key for the db write/read, Prepend a bucket to a key * * The encoding of key is very important step that can cause failure of proper indexing and querying of data * * We are using LevelDB which have pluggable comparator support, so you can decide how to * compare keys. But for NodeJS binding only default comparison algorithm is supported which * uses lexicographical comparison of the raw bytes of the keys * * It is important to use **helpers implemented here** to encode db keys so that key comparison properly work. */ export declare function encodeKey(bucket: number, key: Uint8Array | string | number | bigint): Uint8Array; export declare function encodeNumberForDbKey(value: number, byteSize: number): Uint8Array; export declare function decodeNumberForDbKey(value: Uint8Array, byteSize: number): number; export declare function encodeStringForDbKey(value: string): Uint8Array; export declare function decodeStringForDbKey(value: Uint8Array): string; //# sourceMappingURL=util.d.ts.map