/** * This module provides functions for rendering HTML elements and documents to strings. * @module */ import type { HTMLElementAttributes } from "./attributes.js"; import type { HTMLDocument, HTMLElement, VoidHTMLElement } from "./html_element.js"; import type { HTMLTag, VoidHTMLTag } from "./tags.js"; /** * Renders an HTML element or void element to a string. * * @param tag - The HTML element or void element to render. * @param opts - HTML rendering options * @returns The rendered element as a string. * @throws Error if the element type is not supported. */ export declare const renderElement: (tag: HTMLElement | VoidHTMLElement, A>, opts?: { pretty: boolean; }) => string; /** * Renders an HTML document to a string. * * @param doc - The HTML document to render. * @param opts - HTML rendering options * @returns The rendered HTML document as a string. */ export declare const renderDocument: (doc: HTMLDocument, opts?: { pretty: boolean; }) => string;