import { Store } from 'express-session' export { Hash } from './hash' export { List } from './list' export { Set } from './set' export { Item } from './string' export { SortedSet, SortedSetTheoryOperation, SortedSetScanBaseParameters, } from './zset' export interface Database { checkCompatibility(callback: () => void): Promise checkCompatibilityVersion( version: string, callback: () => void, ): Promise close(): Promise createIndices(callback: () => void): Promise createSessionStore(options: any): Promise emptydb(): Promise flushdb(): Promise info(db: any): Promise init(): Promise } export type RedisStyleMatchString = | string | `*${string}` | `${string}*` | `*${string}*` export type RedisStyleRangeString = `${'(' | '['}${string}` | `${string}` export enum ObjectType { HASH = 'hash', LIST = 'list', SET = 'set', STRING = 'string', SORTED_SET = 'zset', } export type ValueAndScore = { value: string; score: number } export type RedisStyleAggregate = 'SUM' | 'MIN' | 'MAX' export type NumberTowardsMinima = number | '-inf' export type NumberTowardsMaxima = number | '+inf'