/** * buildThumbnailOverride * * Builds a Puck `componentItem` override that shows a schematic SVG thumbnail * alongside the component name and a drag-handle affordance. * * The caller provides a `thumbnailMap` — a plain record from component name to * a zero-argument React function component that renders the SVG wireframe. * Unknown names fall back to a generic line-stub placeholder so the drawer * always looks consistent even if a thumbnail hasn't been designed yet. * * Layout: [thumbnail 48×32] [name — flex 1] [grip dots] */ import React from 'react'; import type { PuckOverrides } from '../plugin/index.js'; /** A zero-argument React component that renders a thumbnail SVG. */ export type ThumbnailFC = React.FC; /** Map from Puck component name to its thumbnail component. */ export type ThumbnailMap = Record; /** * Returns a partial `PuckOverrides` object containing a `componentItem` override * that renders a thumbnail, the component name, and a drag-handle affordance. * * Pass the result to `useP1Editor`'s `additionalOverrides` or merge it with * your existing overrides. */ export declare function buildThumbnailOverride(thumbnailMap: ThumbnailMap): Partial;