import { type JSONContent } from "@tiptap/core"; /** * Parse a GFM markdown string into an array of top-level ProseMirror node JSON * (paragraph / heading / list / table / code block / etc.), matching the live * plan editor schema (`createSharedEditorExtensions({ dialect: "gfm", * features: { image: true } })`) plus the {@link RunId} attribute. * * `tiptap-markdown` registers the markdown parser, so handing the raw markdown * string to `setContent` deserializes it (the same path the live editor uses * when it seeds `content: markdown`). Returns the doc's child nodes; an empty * string yields a single empty paragraph. */ export declare function gfmToProseJSON(markdown: string): JSONContent[]; /** * Serialize an array of top-level ProseMirror node JSON into GFM markdown. The * `runId` attribute is omitted by GFM (the {@link RunId} extension registers no * markdown serializer), so it never leaks into the saved markdown. * * The nodes are wrapped in a `doc` and set on the shared editor, then the GFM * markdown is read from the tiptap-markdown storage — the exact serializer the * live editor persists with, so output is byte-stable with the live save path. */ export declare function proseJSONToGfm(nodes: JSONContent[]): string; //# sourceMappingURL=gfmDoc.d.ts.map