/** * This module provides functions for rendering XML elements and documents to strings. * @module */ import type { VoidXMLElement, XMLAttributes, XMLDeclaration, XMLDocument, XMLElement } from "./xml.js"; /** * Renders an XML element or declaration to a string. * * @param node - The XML element or declaration to render. * @param opts - Optional formatting options. * @returns The rendered XML as a string. * @throws Error if the element type is not supported. */ export declare const renderElement: (node: XMLElement | VoidXMLElement | XMLDeclaration, opts?: { pretty: boolean; }) => string; /** * Renders an XML document as a string. * * @param doc - The XML document to render. * @returns The rendered XML document as a string. */ export declare const renderDocument: (doc: XMLDocument, opts?: { pretty: boolean; }) => string;