import React from 'react'; /** * A body/copy field that supports lightweight inline markdown (`**bold**`, * `_italic_`, newlines — see `lib/util/markdownInline`). * * One field, two surfaces — and the page-builder canvas stays WYSIWYG: * - Production storefront (and SSR / first client render): renders the * FORMATTED markdown via `renderInlineMarkdown`. * - Page-builder canvas, idle: ALSO renders the formatted markdown, so the * canvas matches the live store (no raw `**bold**` on screen). Clicking it * enters edit mode. * - Page-builder canvas, editing: swaps to an `` over the * RAW markdown source (the `` primitive is plain-text only), so * the merchant edits the markdown directly; on blur it flips back to the * formatted view. So raw syntax is visible only for the one field you're * actively editing. * * SSR-safe the same way `` is: the first render always uses the * formatted path; page-builder mode is detected after mount. */ interface EditableMarkdownProps { /** Path under the widget's settings, e.g. "settings.body". */ fieldPath: string; /** Tag to render. Default 'p'. */ as?: React.ElementType; className?: string; /** Raw markdown source. */ children: string; } export declare function EditableMarkdown({ fieldPath, as: Tag, className, children }: EditableMarkdownProps): React.ReactElement; export {};