define(["require", "exports", "inversify", "wed", "@wedxml/ajax-saver", "@wedxml/base-saver/tokens", "@wedxml/trivial-grammar-loader", "wed"], function (require, exports, inversify_1, wed_1, ajax_saver_1, tokens_1, trivial_grammar_loader_1, wed_2) {
    "use strict";
    function __export(m) {
        for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
    }
    Object.defineProperty(exports, "__esModule", { value: true });
    function myMakeEditor(wedroot, options, saverOptions) {
        const container = new inversify_1.Container();
        container.bind(wed_1.tokens.EDITOR_WIDGET).toConstantValue(wedroot);
        container.bind(wed_1.tokens.EDITOR_OPTIONS).toConstantValue(options);
        container.bind(wed_1.tokens.SAVER).to(ajax_saver_1.AjaxSaver);
        container.bind(tokens_1.SAVER_OPTIONS).toConstantValue(saverOptions);
        container.bind(wed_1.tokens.GRAMMAR_LOADER).to(trivial_grammar_loader_1.TrivialGrammarLoader);
        return wed_1.makeEditor(container);
    }
    exports.makeEditor = myMakeEditor;
    __export(wed_2);
});
//# sourceMappingURL=entry.js.map