import { Injectable } from '@angular/core';
import { BehaviorSubject } from 'rxjs';
import * as i0 from "@angular/core";
export class FlowEditorService {
    constructor() {
        this.selectedNode$ = new BehaviorSubject(null);
        this.selectedNode = this.selectedNode$.asObservable();
        this.allSteps = [];
    }
    selectNode(node) {
        this.selectedNode$.next(node);
    }
    updateNode(node) {
        // Trigger any necessary updates
    }
    setAllSteps(steps) {
        this.allSteps = steps;
    }
    getAllSteps() {
        return this.allSteps;
    }
    static { this.ɵfac = function FlowEditorService_Factory(t) { return new (t || FlowEditorService)(); }; }
    static { this.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: FlowEditorService, factory: FlowEditorService.ɵfac, providedIn: 'root' }); }
}
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FlowEditorService, [{
        type: Injectable,
        args: [{
                providedIn: 'root'
            }]
    }], () => [], null); })();
//# sourceMappingURL=flow-editor.service.js.map