import { Connection } from "src/models/Connection" ; import { RequestData } from "src/models/RequestData" ; import { Options } from "src/models/Options" ; import { Port } from "src/models/Port" ; import { Endpoint } from "src/models/Endpoint" ; import { Handler } from "src/models/Shared/EventDispatcher" ; export interface ShowStatusCodeEvent { } export interface ReceiveDataEvent { } export interface FailedConnectEvent { message : string ; } export interface IDataOperator { /**
     * A unique component ID
     */ originID : string ; /**
     * Component options
     */ options : Options ; /**
     * Color of component on board
     */ color : string ; /**
     * Whether to make background or border of component colored
     */ fillColor : boolean ; /**
     * receiveData: receives data
     */ receiveData ( data , fromOutput ) : void ; /**
     * sendData: sends data
     */ sendData ( data ) : void ; /**
     * connectTo: connects to other operator via port
     */ connectTo ( operator , connectingWithOutput ) : Connection ; /**
     * canConnectTo: return true if operator can connect to given port with wanted port
     */ canConnectTo ( port , connectingWithOutput ) ; /**
     * getPort: returns property port
     */ getPort ( outputPort ) : Port ; /**
     * getAvailableEndpoints: returns all endpoints, that can be accessed in/by this object
     */ getAvailableEndpoints ( ) : Endpoint [ ] ; onShowStatusCode ( handler ) ; onReceiveData ( handler ) ; onFailedConnect ( handler ) ; onConnectionUpdate ( wasOutput ) ; destroy ( ) ; }