/// import Point from '../geom/Point'; import { Graph, GraphElement, Node } from '../types'; import { DragEvent, DragObjectWithType, DragOperationWithType } from './dnd-types'; export declare const CREATE_CONNECTOR_OPERATION = "#createconnector#"; export declare const CREATE_CONNECTOR_DROP_TYPE = "#createConnector#"; export interface ConnectorChoice { label: string; } export interface CreateConnectorOptions { handleAngle?: number; handleAngleTop?: number; handleLength?: number; dragItem?: DragObjectWithType; dragOperation?: DragOperationWithType; hideConnectorMenu?: boolean; } interface ConnectorComponentProps { startPoint: Point; endPoint: Point; hints: string[]; dragging: boolean; hover?: boolean; } declare type CreateConnectorRenderer = React.ComponentType; declare type OnCreateResult = ConnectorChoice[] | void | undefined | null | React.ReactElement[]; declare type CreateConnectorWidgetProps = { element: Node; onKeepAlive: (isAlive: boolean) => void; onCreate: (element: Node, target: Node | Graph, event: DragEvent, dropHints?: string[] | undefined, choice?: ConnectorChoice) => Promise | OnCreateResult; ConnectorComponent: CreateConnectorRenderer; contextMenuClass?: string; } & CreateConnectorOptions; declare const CreateConnectorWidget: React.FunctionComponent; interface ElementProps { element: GraphElement; } export interface WithCreateConnectorProps { onShowCreateConnector?: () => void; onHideCreateConnector?: () => void; } export declare const withCreateConnector:

(onCreate: React.ComponentProps['onCreate'], ConnectorComponent?: CreateConnectorRenderer, contextMenuClass?: string, options?: CreateConnectorOptions) => (WrappedComponent: import("react").ComponentType

) => import("react").FunctionComponent>; export {}; //# sourceMappingURL=withCreateConnector.d.ts.map