import type { ComponentType } from "react"; import type { PropsWithData } from "../blocks/helpers/PropsWithData.js"; type PropsWithClassName = Props & { /** Apply to the block's root element to make the block selectable in the block preview. */ className?: string; }; interface WithPreviewOptions { /** Block name shown in the block preview, for instance `"Button"`. */ label?: string; } /** Makes a mail block selectable in the admin's block preview. Outside the block preview, the block renders unchanged. */ export declare function withPreview(Component: ComponentType>, { label }?: WithPreviewOptions): ComponentType>; export {};