import { type MarkdownDocumentProps } from './MarkdownDocument.tsx'; export interface MarkdownLiveProps extends MarkdownDocumentProps { /** * Document key used to subscribe to live updates via `globalThis.comarkContext`. * Falls back to the document's own `meta.key` when set by a plugin. */ documentKey?: string; } /** * Client wrapper around {@link MarkdownDocument} that subscribes to live document * updates via `globalThis.comarkContext` and re-renders with the pushed document. * * Use this when you need live updates. `MarkdownDocument` itself stays free of * client-only hooks so it can render in a React Server Component. * * @example * ```tsx * // In a Server Component — render statically, hydrate for live updates: * import { MarkdownLive } from '@comark/react' * * export default async function Page() { * const document = await parseMarkdown(markdown) * return * } * ``` */ export declare function MarkdownLive({ value, documentKey, ...rest }: MarkdownLiveProps): import("react").JSX.Element;