/** HTML shell + markdown→HTML rendering with server-side diff/code highlighting and client-side mermaid. */
export interface RenderFlags {
hasMermaid: boolean;
hasDiff: boolean;
hasCode: boolean;
}
/** Render markdown to an HTML body fragment, handling diff/code/mermaid fences. */
export declare function renderMarkdown(content: string, flags: RenderFlags): string;
export declare function renderCommentMarkdown(md: string): string;
/** Build the full HTML document shell around a body fragment. */
export declare function buildShell(opts: {
title: string;
slug: string;
kind: 'markdown' | 'html';
bodyHtml: string;
flags: RenderFlags;
}): string;
/** Render a markdown artifact to a full HTML document. */
export declare function renderMarkdownDocument(title: string, slug: string, content: string): string;
/** Render an html artifact: full documents get the shell's metadata metas + SSE reload snippet spliced in; fragments get the full shell. */
export declare function renderHtmlDocument(title: string, slug: string, content: string): string;
/** Build the index page listing all artifacts, newest first. */
export declare function renderIndexPage(entries: {
slug: string;
title: string;
kind: string;
mtime: number;
}[]): string;