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