/** * Sending a raw Redis command through whichever client an application passes: ioredis's `call()` * or node-redis's `sendCommand()`. Kept apart so each Redis adapter decides the same way. */ /** A client that sends raw commands, as ioredis or node-redis does. */ export type RedisRawClient = { call(command: string, ...args: Arg[]): Promise; } | { sendCommand(args: Arg[]): Promise; }; /** * A function that sends one command as an array. `call` is used when a client has it: ioredis has a * `sendCommand()` too, which takes its own command object rather than an array. */ export declare function redisSender(client: RedisRawClient): (args: Arg[]) => Promise;