///
import { Index } from "crypto/sse/findex/interfaces";
import { DBInterface } from "crypto/sse/findex/interfaces/dbInterface";
import { RedisClientType } from "redis";
export declare class RedisDB implements DBInterface {
instance: RedisClientType;
constructor(localhost: string, port: number);
initInstance(): Promise;
fetchEntry: (serializedUids: Uint8Array) => Promise;
fetchChain: (serializedUids: Uint8Array) => Promise;
upsertEntry: (serializedEntries: Uint8Array) => Promise;
upsertChain: (serializedEntries: Uint8Array) => Promise;
getIndexById(uids: Uint8Array[], redisPrefix: number): Promise;
getEntryTableEntriesById(uids: Uint8Array[]): Promise;
getChainTableEntriesById(uids: Uint8Array[]): Promise;
upsertIndex(entries: Index[], redisPrefix: number): Promise;
upsertEntryTableEntries(entries: Index[]): Promise;
upsertChainTableEntries(entries: Index[]): Promise;
formatKey(prefixNumber: number, uid: Uint8Array): Buffer;
upsertEncryptedUser(uid: Uint8Array, encryptedValue: Uint8Array): Promise;
getEncryptedUsersById(uids: Uint8Array[]): Promise;
getAllIndexes(redisPrefix: number): Promise;
getEntryTableEntries(): Promise;
getChainTableEntries(): Promise;
getFirstEncryptedUsers(): Promise;
getEncryptedUsers(): Promise;
deleteAllEntryTableEntries(): Promise;
deleteAllChainTableEntries(): Promise;
deleteAllEncryptedUsers(): Promise;
getKeyValue(keyPrefix: number, keySuffix: number): Promise<{
uid: Uint8Array;
value: Uint8Array;
}>;
}
//# sourceMappingURL=db.d.ts.map