import type { CommandOptions } from "./command"; import { Command } from "./command"; /** * @see https://redis.io/commands/bitop * @see node_modules/@upstash/redis/docs/commands/bitmap/bitop.mdx */ export class BitOpCommand extends Command { constructor( cmd: [op: "and" | "or" | "xor", destinationKey: string, ...sourceKeys: string[]], opts?: CommandOptions ); constructor( cmd: [op: "not", destinationKey: string, sourceKey: string], opts?: CommandOptions ); constructor( cmd: [op: "diff" | "diff1" | "andor", destinationKey: string, x: string, ...y: string[]], opts?: CommandOptions ); constructor( cmd: [op: "one", destinationKey: string, ...sourceKeys: string[]], opts?: CommandOptions ); constructor( cmd: [ op: "and" | "or" | "xor" | "not" | "diff" | "diff1" | "andor" | "one", destinationKey: string, ...sourceKeys: string[], ], opts?: CommandOptions ) { super(["bitop", ...cmd], opts); } }