/// <reference types="src/global" />
import Redis, { RedisValue, RedisKey } from 'ioredis';
import { Redis as RedisMockType } from 'ioredis-mock';
export type Cache = {
    node: RedisMockType;
    redis?: Redis;
    set: (key: RedisKey, value: RedisValue, ttl?: number, keepTtl?: boolean) => Promise<'OK' | undefined>;
    mset: (values: Record<string, RedisValue>, ttl?: number, keepTtl?: boolean) => Promise<'OK' | undefined>;
    get: (key: RedisKey, resetTTL?: boolean, ttl?: number) => Promise<string | null | undefined>;
    mget: (keys: RedisKey[], resetTTL?: boolean, ttl?: number) => Promise<(string | null)[]>;
    keys: (pattern: string) => Promise<RedisKey[]>;
    delete: (keys: RedisKey[]) => Promise<number | undefined>;
    ttl: (key: RedisKey) => Promise<number | undefined>;
};
export declare const getCache: () => Cache;
declare const _default: Cache;
export default _default;
//# sourceMappingURL=index.d.ts.map