import React from 'react'; export interface LayerWidget { uuid: string; name: string | null; type: string; rawSettings: Record | null; columns?: Array<{ index: number; widgets: LayerWidget[]; }>; } /** * Minimal shape from the widget-type registry — the Layers panel renders * the canonical widget name + description (not the instance's per-row * name/code, which were terse and not human-friendly). */ export interface LayerNodeWidgetType { code: string; name: string; description: string; /** Optional lucide icon name; resolved via `getWidgetIcon`. */ icon?: string | null; } interface LayerNodeProps { widget: LayerWidget; selectedUid: string | null; onSelect: (uid: string, type: string, settings: Record) => void; depth?: number; /** * Lookup from widget code → registry entry. Parent builds the map once * from `widgetTypes` and passes it through; LayerNode threads it into * its recursive children so the lookup stays O(1) at every depth. */ widgetTypesByCode: ReadonlyMap; } export declare function LayerNode({ widget, selectedUid, onSelect, depth, widgetTypesByCode }: LayerNodeProps): React.ReactElement; export {};