/** * buildLiveThumbnailDrawer * * Builds a Puck `drawer` override that replaces the default component list * with a visual, thumbnail-driven sidebar: * * - components are grouped into collapsible category sections * (from `config.categories`, plus an "Other" bucket for anything * uncategorized); * - the first category is expanded by default, the rest collapsed, so the * initial paint mounts as few live previews as possible; * - each category renders a 2-column grid of ThumbnailCards, each wrapped in * Puck's so it stays draggable onto the canvas. * * Pass the result to useP1Editor's `additionalOverrides`. */ import type { PuckOverrides } from '../plugin/index.js'; type RenderConfig = any; export interface LiveThumbnailDrawerOptions { /** Zoom factor for each preview. */ scale?: number; /** Height of each preview area, in pixels. */ cardHeight?: number; /** Optional callback to close/collapse the blocks panel. */ onClose?: () => void; } /** * Returns a `drawer` override rendering the visual thumbnail sidebar for the * given Puck config. */ export declare function buildLiveThumbnailDrawer(config: RenderConfig, options?: LiveThumbnailDrawerOptions): Partial; export {};