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