/**
 * redis模块
 * @date 2022-03
 * @author 何华东
 */
export declare type RedisClient = {
    get: Function;
    set: Function;
    del: Function;
    hget: Function;
    hset: Function;
    hgetall: Function;
    [cmd: string]: Function;
};
/**
 * redis客户端实例
 *
 * 如果项目已注册`redis`配置到ioc(配置详见{@link Config}),
 * 那么模块被加载时，会自动创建该实例
 *
 * 如果项目已添加配置依赖[NsConfig](https://me.keytop.cn/service/config)，
 * 那么模块被加载时，从`@Value`获取`redis`配置({@link ConfigCenterConfigProvider})并自动创建该实例
 * @see [ioredis](https://www.npmjs.com/package/ioredis)
 */
export declare let redisClient: RedisClient;
/**
 * redis分布式锁
 *
 * ```ts
 * import { RedisLock } from "refs/nslib";
 *
 * //去掉注释
 * //@RedisLock()
 * async function exec(){
 *
 * }
 * ```
 */
export declare function RedisLock(key: ((...args: any[]) => string) | string, value: string, ex: number): MethodDecorator;
