"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.watchGraphUnitMoveEvent = watchGraphUnitMoveEvent;
function watchGraphUnitMoveEvent(event, graph, callback) {
    const listener = (id, unitId, inputId, path) => {
        callback({
            type: 'graph',
            event,
            data: {
                id,
                unitId,
                inputId,
                path,
            },
        });
    };
    graph.prependListener(event, listener);
    return () => {
        graph.removeListener(event, listener);
    };
}
//# sourceMappingURL=watchGraphUnitMoveEvent.js.map