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