"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.humanizeClearCookiesStep = humanizeClearCookiesStep;
exports.clearCookiesStepToAIString = clearCookiesStepToAIString;
const BaseStep_1 = __importDefault(require("./BaseStep"));
const mablscript_step_types_1 = require("../../mablscript-step-types");
const yaml_utils_1 = require("../yaml-utils");
class ClearCookiesStep extends BaseStep_1.default {
    static getStepType() {
        return mablscript_step_types_1.StepType.CLEAR_COOKIES;
    }
    constructor() {
        super(ClearCookiesStep.getStepType());
        this.options = {
            editable: false,
            executionContext: 'background',
        };
    }
    generateMablscript() {
        return `clear_cookies()`;
    }
    static generateStepFromMablStep(_mablClearCookiesStep) {
        return new ClearCookiesStep();
    }
    static create(_descriptor) {
        const step = new ClearCookiesStep();
        step.generateStepId();
        return step;
    }
}
exports.default = ClearCookiesStep;
function humanizeClearCookiesStep() {
    return `Clear cookies from the current domain`;
}
function clearCookiesStepToAIString(step) {
    return (0, yaml_utils_1.toYaml)({
        stepType: step.stepType,
    });
}
