UNPKG

@valkey/client

Version:

The source code and documentation for this package are in the main [node-redis](https://github.com/redis/node-redis) repo.

21 lines (20 loc) 710 B
/// <reference types="node" /> import { ValkeyCommandArgument, ValkeyCommandArguments } from "."; interface CommonOptions { REDIRECT?: number; NOLOOP?: boolean; } interface BroadcastOptions { BCAST?: boolean; PREFIX?: ValkeyCommandArgument | Array<ValkeyCommandArgument>; } interface OptInOptions { OPTIN?: boolean; } interface OptOutOptions { OPTOUT?: boolean; } type ClientTrackingOptions = CommonOptions & (BroadcastOptions | OptInOptions | OptOutOptions); export declare function transformArguments<M extends boolean>(mode: M, options?: M extends true ? ClientTrackingOptions : undefined): ValkeyCommandArguments; export declare function transformReply(): "OK" | Buffer; export {};