"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TextClassificationConfigStorage = void 0;
var fs_1 = require("fs");
var path_1 = require("path");
var file_utils_1 = require("../../../utils/file-utils");
var TextClassificationConfigStorage = /** @class */ (function () {
    function TextClassificationConfigStorage() {
        this.CONFIG_FILENAME = 'config.json';
    }
    TextClassificationConfigStorage.prototype.load = function (path) {
        return file_utils_1.readJSON(path_1.join(path, this.CONFIG_FILENAME));
    };
    TextClassificationConfigStorage.prototype.save = function (path, config) {
        fs_1.mkdirSync(path, { recursive: true });
        fs_1.writeFileSync(path_1.join(path, this.CONFIG_FILENAME), JSON.stringify(config));
    };
    return TextClassificationConfigStorage;
}());
exports.TextClassificationConfigStorage = TextClassificationConfigStorage;
//# sourceMappingURL=config-storage.js.map