import type { NodePort } from '../types/index.js'; /** * Sort ports by an ordered array of port IDs. * Ports not listed appear at the end in their original order. */ export declare function applyPortOrder(ports: NodePort[], orderedIds: string[] | undefined): NodePort[]; /** * Compute the CSS `top` offset (px) for a port handle. * - 1 port: centered at 40px * - N ports: 20px start, 40px gap between each */ export declare function getPortTop(index: number, count: number): number; /** * Determine whether a port should be rendered. * * Priority: * 1. Manual hide (`hiddenPorts`) — always wins, regardless of connections * 2. `hideUnconnectedHandles` — hide if not present in the connected handles set * 3. Default — visible */ export declare function isPortVisible(port: NodePort, direction: 'input' | 'output', hiddenPorts: { inputs?: string[]; outputs?: string[]; }, hideUnconnectedHandles: boolean, connectedHandles: Set, nodeId: string | undefined): boolean;