"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.watchGraphReorderSubComponent = void 0;
function watchGraphReorderSubComponent(event, graph, callback) {
    const listener = (...[parentId, childId, to, path]) => {
        callback({
            type: 'graph',
            event,
            data: {
                parentId,
                childId,
                to,
                path,
            },
        });
    };
    graph.prependListener(event, listener);
    return () => {
        graph.removeListener(event, listener);
    };
}
exports.watchGraphReorderSubComponent = watchGraphReorderSubComponent;
//# sourceMappingURL=watchGraphReorderSubComponent.js.map