"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.awaitUploadStepToAIString = awaitUploadStepToAIString;
const mablscript_step_types_1 = require("../../mablscript-step-types");
const BaseStep_1 = __importDefault(require("./BaseStep"));
const yaml_utils_1 = require("../yaml-utils");
class AwaitUploadStep extends BaseStep_1.default {
    static getStepType() {
        return mablscript_step_types_1.StepType.AWAIT_UPLOAD;
    }
    constructor() {
        super(AwaitUploadStep.getStepType());
        this.options = {
            editable: false,
            executionContext: 'background',
        };
    }
    generateMablscript() {
        return 'await_uploads()';
    }
    humanize() {
        return 'Wait for uploads';
    }
    inputVariables() {
        return [];
    }
    static generateStepFromMablStep(_mablAwaitUploadStep) {
        return new AwaitUploadStep();
    }
    static create(_descriptor) {
        const step = new AwaitUploadStep();
        step.generateStepId();
        return step;
    }
}
exports.default = AwaitUploadStep;
function awaitUploadStepToAIString(step) {
    return (0, yaml_utils_1.toYaml)({
        stepType: step.stepType,
    });
}
