import { g as VDocumentFragment, e as VElement, i as VDocument, V as VHTMLDocument, a as VNode, c as VNodeQuery } from './jsx-runtime-DjU_g5hI.js'; export { C as CDATA, f as VDocType, d as VElementStyle, b as VTextNode, j as createDocument, k as createHTMLDocument, l as document, m as h, h as html, p as isVDocument, n as isVElement, o as isVTextElement } from './jsx-runtime-DjU_g5hI.js'; declare function escapeHTML(text: string): string; declare const unescapeHTML: (html: string) => string; interface Context { h?: any; document: VDocument | VDocumentFragment; } declare function hArgumentParser(tag: string | ((props: any) => VDocumentFragment | VElement), attrs?: Record | unknown[] | null, ...childrenInput: unknown[]): { tag: string | ((props: any) => VDocumentFragment | VElement); attrs: Record; children: unknown[]; }; declare function hFactory(context: Context): any; declare function handleHTML(html: string, handler: (document: VHTMLDocument | VDocumentFragment) => void): string; interface SerializeMarkdownOptions { /** Wrap column for soft-wrapping long lines. `0` or omitted disables wrapping. */ wrap?: number; /** * How `` and `…` are rendered. * - `'inline'` (default): `[text](url)` / `![alt](src)` — standard inline syntax * - `'autolink'`: `text ` / `alt ` — label followed by an autolink * (or just `` / `` if the label is empty or equals the URL) */ linkStyle?: 'inline' | 'autolink'; /** * When `false`, inline text-styling tags (`b`, `strong`, `i`, `em`, `u`, `mark`, * `tt`, `code`, `strike`, `del`, `ins`, `sub`, `sup`) are unwrapped and rendered * as plain text. Default `true` (styles preserved). */ inlineStyles?: boolean; } declare function serializeMarkdown(node: VNode, options?: SerializeMarkdownOptions): string; declare function serializePlaintext(node: VNode): string; declare function serializeSafeHTML(node: VNode): string; declare function safeHTML(html: string): string; declare function tidyDOM(document: VDocument): void; declare function removeBodyContainer(body: VNodeQuery): VNodeQuery; /** Fallback for Object.hasOwn */ declare function hasOwn(object: any, propertyName: string): boolean; declare function vdom(obj?: VNode | Buffer | string | null): VNode; declare function parseHTML(html: string): VDocumentFragment | VHTMLDocument; declare function xml(itag: string | ((props: any) => VElement | VDocumentFragment), iattrs?: Record | unknown[] | null, ...ichildren: any[]): string; declare namespace xml { var firstLine: string; var xml: boolean; } export { VDocument, VDocumentFragment, VElement, VHTMLDocument, VNode, VNodeQuery, escapeHTML, hArgumentParser, hFactory, handleHTML, hasOwn, parseHTML, removeBodyContainer, safeHTML, serializeMarkdown, serializePlaintext, serializeSafeHTML, tidyDOM, unescapeHTML, vdom, xml };