import { Command } from "./command.js";
/**
 * @see https://redis.io/commands/bitcount
 */
export class BitCountCommand extends Command {
    constructor([key, start, end], opts) {
        const command = ["bitcount", key];
        if (typeof start === "number") {
            command.push(start);
        }
        if (typeof end === "number") {
            command.push(end);
        }
        super(command, opts);
    }
}
