import { Port, NodeId, PortId } from '../../../types/core'; /** * Brand symbol for PortKey type safety */ declare const PortKeyBrand: unique symbol; /** * Composite key for uniquely identifying a port within an editor * Format: `${nodeId}:${portId}` * Branded type to prevent accidental assignment of arbitrary strings */ export type PortKey = `${string}:${string}` & { readonly [PortKeyBrand]: never; }; /** * Create a composite port key from node and port IDs */ export declare const createPortKey: (nodeId: NodeId, portId: PortId) => PortKey; /** * Create a composite port key from a Port instance */ export declare const getPortKey: (port: Port) => PortKey; /** * Parse a composite port key into node and port IDs * Returns null if the key format is invalid */ export declare const parsePortKey: (key: PortKey | string) => { nodeId: NodeId; portId: PortId; } | null; export {};