/** * ComponentTree Component * * Displays a tree of components for one side of the comparison. */ import React from 'react'; import type { ComponentDiffWithPosition } from '../../../core/types.js'; export interface ComponentTreeProps { /** * Array of component diffs. */ diffs: ComponentDiffWithPosition[]; /** * Which side of the comparison this tree represents. */ side: 'before' | 'after'; /** * Currently selected component ID. */ selectedComponentId?: string; /** * Callback when a component is selected. */ onSelectComponent?: (diff: ComponentDiffWithPosition) => void; /** * Additional CSS class name. */ className?: string; } /** * Renders a tree of components for one side of the comparison. */ export declare function ComponentTree({ diffs, side, selectedComponentId, onSelectComponent, className, }: ComponentTreeProps): React.ReactElement;