/** * @file Canonical Markdown printer: AST → text (MD-FORMAT.md §5). * * The printer is the round-trip half of the package: canonical output * re-parses to a deep-equal AST. Canonical choices: ATX headings, `-` * bullets, `1.`/`2.` ordered markers renumbered from `start`, backtick * fences, `*`/`**` emphasis, inline links, backslash hard breaks and * piped tables. Dispatch is one prebuilt table per node class — no * per-node type chains. */ export type MdNode = import('./ast.js').MdNode; /** * Print an MdDocument (or a bare AST array / single node) to canonical * Markdown. Frontmatter re-emits as a `---json` block by default — * exact, syntax-neutral round-trips (MD-FORMAT.md §5). * * @param {any} docOrAst * @param {{ frontmatter?: boolean }} [options] * @returns {string} */ export declare function toMarkdown(docOrAst: any, options?: { frontmatter?: boolean; }): string;