import IORedis, { RedisOptions } from "ioredis"; import { ElementProxy } from "yaml-scene/src/elements/ElementProxy"; import { IElement } from "yaml-scene/src/elements/IElement"; import { Functional } from 'yaml-scene/src/tags/model/Functional'; export declare type Cmd = { title?: string; cmd: string[] | string | Functional; args?: string[]; var?: any; }; export declare class Redis implements IElement { proxy: ElementProxy; $$: IElement; $: this; pretty?: boolean; title?: string; uri: string; commands: (Cmd | string)[]; opts?: RedisOptions; redis: IORedis; init(props: { uri: string; title?: string; }): void; prepare(): Promise; exec(): Promise; protected runCommand(command: Cmd): Promise; dispose(): Promise; protected getCommand(cmd: string | string[] | Functional): string[] | Functional; }