import { type RefObject } from "react"; export interface PreviewElement { element: HTMLElement; adminRoute: string; label: string; measurementTarget: "element"; } export interface IFrameBridge { hasBridge: boolean; addPreviewElement: (previewElement: PreviewElement) => void; removePreviewElement: (previewElement: PreviewElement) => void; } /** * Returns a ref for the element that contains the mail HTML. Registers the blocks in it that use `withPreview` with the block preview. * * @param iFrameBridge The result of `useIFrameBridge` from `@dextinity/site-react`. */ export declare function useRefToRegisterMailBlocksForPreview({ hasBridge, addPreviewElement, removePreviewElement, }: IFrameBridge): RefObject;