"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.watchGraphReorderSubComponent = watchGraphReorderSubComponent;
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);
    };
}
//# sourceMappingURL=watchGraphReorderSubComponent.js.map