/**
* Turns the HTML rendered from a Markdown document into what an HTML template presents:
* a title, a lead, one per top-level h2 and a table of contents.
* Pure string logic: no parser dependency, the input is the output of marked.
*/
export interface StructuredHtml {
/** Plain text, already HTML-escaped. */
title: string;
toc: string;
content: string;
}
export interface HtmlTemplateValues extends StructuredHtml {
language: string;
}
export declare function structureHtml(html: string, fallbackTitle: string): StructuredHtml;
/** Single pass: placeholders written in the document itself stay literal. */
export declare function fillHtmlTemplate(template: string, values: HtmlTemplateValues): string;
//# sourceMappingURL=htmlDocument.d.ts.map