interface UseMeasuredCardRectsResult { /** Ref callback to attach to the diagram's outer container element. */ containerRef: (element: HTMLDivElement | null) => void; /** Returns a ref callback for the source card at `index`; attach one per card. */ setSourceCardRef: (index: number) => (element: HTMLDivElement | null) => void; /** Ref callback to attach to the target card element. */ setTargetCardRef: (element: HTMLDivElement | null) => void; /** One connector path `d` string per source, in the same order as the sources. */ connectorPaths: string[]; } /** * Measures the container, every source card, and the target card via * `getBoundingClientRect`, and derives the fan-in connector paths between * them. Re-measures whenever any of those elements resize (via * `ResizeObserver`), so the diagram keeps its connectors aligned as cards * reflow. The geometry itself lives in the pure `computeConnectorPaths` * util — this hook only owns refs, measurement, and re-measurement timing. */ export declare const useMeasuredCardRects: (sourceCount: number) => UseMeasuredCardRectsResult; export {};