UNPKG

@hadyfayed/filament-workflow-canvas

Version:

Visual workflow builder and canvas component for Filament applications

22 lines 1.06 kB
import { Node, Edge } from 'reactflow'; import { IWorkflowEventSystem, WorkflowData } from '../interfaces/IWorkflowManager'; export declare class WorkflowEventService implements IWorkflowEventSystem { private listeners; onNodeAdded(callback: (node: Node) => void): void; onNodeUpdated(callback: (node: Node) => void): void; onNodeDeleted(callback: (nodeId: string) => void): void; onConnectionCreated(callback: (edge: Edge) => void): void; onWorkflowSaved(callback: (data: WorkflowData) => void): void; emit(event: string, data?: any): void; on(event: string, callback: Function, priority?: number): void; off(event: string, callback: Function): void; hasListeners(event: string): boolean; clear(): void; getListenerCount(event?: string): number; emitNodeAdded(node: Node): void; emitNodeUpdated(node: Node): void; emitNodeDeleted(nodeId: string): void; emitConnectionCreated(edge: Edge): void; emitWorkflowSaved(data: WorkflowData): void; } //# sourceMappingURL=WorkflowEventService.d.ts.map