import { Connection, ConnectionDisconnectState, ConnectionDragState, Node, NodeId, Port } from '../../../types/core'; import { NodeDefinition } from '../../../types/NodeDefinition'; import { ConnectablePortsResult } from './connectableTypes'; export type ComputeConnectablePortsParams = { dragState?: ConnectionDragState | null; disconnectState?: ConnectionDisconnectState | null; fallbackPort?: Port | null; nodes: Record; connections: Record; getNodePorts: (nodeId: string) => Port[]; getNodeDefinition: (type: string) => NodeDefinition | undefined; }; /** * Determine the ports that can accept a connection for the current interaction context. * Returns both the raw identifiers and detailed descriptors to aid debugging and UI decisions. */ export declare const computeConnectablePortIds: ({ dragState, disconnectState, fallbackPort, nodes, connections, getNodePorts, getNodeDefinition, }: ComputeConnectablePortsParams) => ConnectablePortsResult; export declare const resolveConnectableSourcePort: ({ dragState, disconnectState, fallbackPort, }: Pick) => Port | null;