/** * Substack's document format back to markdown. * * Without this, reading a draft gives you a wall of ProseMirror JSON. A model * then has to reconstruct the whole document to change one sentence, and * usually flattens the formatting doing it. * * With it, `get_draft` returns readable markdown, the model edits the part it * was asked to change, and `update_draft` parses it straight back. Round trip. */ import type { PMDoc } from "./prosemirror.js"; export declare function docToMarkdown(document: PMDoc): string;