import { CanvasColour, DefaultConnectionColors, INodeSlot, ISlotType, IWidgetLocator, Point } from '../interfaces'; import { LLink } from '../LLink'; import { RenderShape, LinkDirection } from '../types/globalEnums'; import { Rectangle } from '../infrastructure/Rectangle'; /** Base class for all input & output slots. */ export declare abstract class SlotBase implements INodeSlot { name: string; localized_name?: string; label?: string; type: ISlotType; dir?: LinkDirection; removable?: boolean; shape?: RenderShape; color_off?: CanvasColour; color_on?: CanvasColour; locked?: boolean; nameLocked?: boolean; widget?: IWidgetLocator; _floatingLinks?: Set; hasErrors?: boolean; /** The centre point of the slot. */ abstract pos?: Point; readonly boundingRect: Rectangle; constructor(name: string, type: ISlotType, boundingRect?: Rectangle); abstract get isConnected(): boolean; renderingColor(colorContext: DefaultConnectionColors): CanvasColour; }