import { CurveFactory } from 'd3-shape'; import { ClassicPreset } from 'rete'; import { BaseNodeClass } from './base-node.model'; import { Position } from 'rete-connection-plugin/_types/types'; import { ConnectionConfigType, ConnectionDirectionType } from './connection-config.type'; import { ConnectionLabelType } from './connection-label.type'; import { PathPluginConfig } from './path.type'; export type TransformerFactory = (connection: Connection, options: PathPluginConfig) => (points: Position[]) => Position[]; export declare class Connection extends ClassicPreset.Connection { curve?: CurveFactory; createSegmentedPath?: TransformerFactory; renderType?: 'default' | 'custom'; status?: string; styleClass?: string; label?: string | ConnectionLabelType; sourceNode: Source; targetNode: Target; direction: ConnectionDirectionType; constructor(source: Source, target: Target, config?: ConnectionConfigType); }