/**
* Markdown HTML Generator
*
* Generates a standalone HTML document for GitHub-style markdown preview.
* Handles theme detection (color_mode param, Sec-CH-Prefers-Color-Scheme header),
* studio bridge script injection, and mermaid diagram initialization.
*
* @module server/handlers/preview/markdown-html-generator
*/
/** Options for generating markdown preview HTML. */
interface MarkdownHtmlOptions {
/** Rendered HTML content from the markdown compiler. */
rawHtml: string;
/** Page title (from frontmatter or file path). */
title: string;
/** Page description from frontmatter. */
description: string;
/** Original request for reading client hints. */
request: Request;
/** Request URL for reading query parameters. */
url: URL;
/** Project slug or ID for the studio bridge. */
projectId: string;
/** File path of the markdown file. */
filePath: string;
/** CSP nonce for inline scripts. */
nonce?: string;
}
/**
* Generate a complete HTML document for markdown preview rendering.
*
* Includes GitHub-flavored markdown styles, syntax highlighting,
* mermaid diagram support with theme-aware re-rendering, and optional
* studio bridge integration.
*/
export declare function generateMarkdownHtml(options: MarkdownHtmlOptions): string;
export {};
//# sourceMappingURL=markdown-html-generator.d.ts.map