import { Markdown } from "./markdown.js"; /** * Composes a markdown document block by block: the write half of `Markdown`. * Fields render as frontmatter at the top no matter when they are set, so call * order carries no traps; everything else appends in order. */ export declare class MarkdownWriter { private fields; private blocks; field(name: string, value: string): this; heading(level: number, text: string): this; text(prose: string): this; /** A bullet list, one item per line. No items writes nothing. */ list(...items: string[]): this; /** A bullet list of unchecked task items, `- [ ]` apiece. */ checklist(...items: string[]): this; /** A fenced block. The fence outruns any backtick run in the code. */ code(lang: string, code: string): this; toString(): string; /** The document, parsed back, handy when the caller wants accessors. */ toMarkdown(): Markdown; }