"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.humanizeElseStep = humanizeElseStep;
exports.elseStepToAIString = elseStepToAIString;
const mablscript_step_types_1 = require("../../mablscript-step-types");
const BaseStep_1 = __importDefault(require("./BaseStep"));
const yaml_utils_1 = require("../yaml-utils");
class ElseStep extends BaseStep_1.default {
    static getStepType() {
        return mablscript_step_types_1.StepType.CONDITIONAL_ELSE;
    }
    constructor() {
        super(ElseStep.getStepType());
        this.options = {
            executionContext: 'background',
        };
        this.isConditionalStep = true;
    }
    generateMablscript() {
        return 'conditional_else()';
    }
    inputVariables() {
        return [];
    }
    static generateStepFromMablStep(_mablElseStep) {
        return new ElseStep();
    }
    static create() {
        const step = new ElseStep();
        step.generateStepId();
        return step;
    }
}
exports.default = ElseStep;
function humanizeElseStep() {
    return 'ELSE';
}
function elseStepToAIString(step) {
    return (0, yaml_utils_1.toYaml)({
        stepType: step.stepType,
    });
}
