import React from 'react'; interface PreviewableWidget { code: string; name: string; description?: string | null; category?: string | null; } interface WidgetPreviewCardProps { widget: PreviewableWidget; /** Bounding rect of the widget row that triggered the hover. */ rect: DOMRect; /** Right edge of the palette panel — the card sits just past it. */ anchorX: number; } /** * Hover preview card surfaced by the Widgets palette. Renders a fixed- * positioned card beside the panel containing the widget's stylized preview * (registered via `Widget.previewComponent`, bundled by AreaLoader under * key `admin_widget_preview_`) plus a caption with name/description. * * Doesn't go through `` because Area's lookup picks at most one * component per widget type (setting OR storefront) — adding a third * "preview" variant would invasively change Area's contract. Instead we * read the current route's wildcard map via `getAreaComponents(routeId)['*']` * and pull the preview component out of it. * * `pointer-events: none` so the card never blocks drag/click on the row. */ export declare function WidgetPreviewCard({ widget, rect, anchorX }: WidgetPreviewCardProps): React.ReactElement; export {};