import { color, xy } from '@synnaxlabs/x';
import { ConnectionLineComponentProps, EdgeProps as RFEdgeProps } from '@xyflow/react';
import { ReactElement } from 'react';
import { connector } from './connector';
import { PathType } from './paths';
export interface EdgeProps extends RFEdgeProps {
    segments: connector.Segment[];
    onSegmentsChange: (segments: connector.Segment[]) => void;
    variant?: PathType;
    color?: color.Crude;
}
export declare const CustomConnectionLine: ({ fromX, fromY, toX, toY, fromPosition, toPosition, fromNode, connectionLineStyle, connectionStatus, }: ConnectionLineComponentProps) => ReactElement;
export declare const Edge: ({ id, source, target, sourcePosition: sourceOrientation, targetHandleId, targetPosition: targetOrientation, style, segments: propsSegments, onSegmentsChange, color, selected, variant, ...rest }: EdgeProps) => ReactElement;
export declare const calcMidPoints: (points: xy.XY[]) => xy.XY[];
//# sourceMappingURL=Edge.d.ts.map