"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CustomSectionRegistry = void 0;
class CustomSectionRegistry {
    constructor() {
        this.definitions = new Map();
    }
    define(name, section) {
        this.definitions.set(name, section);
        return this;
    }
    getComponent(name) {
        var _a;
        return (_a = this.definitions.get(name)) === null || _a === void 0 ? void 0 : _a.component;
    }
    getResolver(name) {
        var _a;
        return (_a = this.definitions.get(name)) === null || _a === void 0 ? void 0 : _a.dataResolver;
    }
}
exports.CustomSectionRegistry = CustomSectionRegistry;
