UNPKG

digitaltwin-core

Version:

Minimalist framework to collect and handle data in a Digital Twin project

13 lines 473 B
import { EventEmitter } from 'events'; export interface ComponentEvent { type: 'collector:completed' | 'harvester:completed'; componentName: string; timestamp: Date; data?: any; } export declare class EngineEventBus extends EventEmitter { emit(event: string, data: ComponentEvent): boolean; on(event: string, listener: (data: ComponentEvent) => void): this; } export declare const engineEventBus: EngineEventBus; //# sourceMappingURL=events.d.ts.map