/** * 将成对的别名标签 ``…`` 归一为与 `preprocessSpecialTags(..., 'think')` 契约一致的规范标签。 * 否则 `preprocessThinkTags` 无法把思考区内的 ``` 围栏换成 【CODE_BLOCK】,内层 JSON 会变成顶层独立 code 节点。 */ export declare function normalizeThinkTagAliases(markdown: string): string; /** * 解码 URI 组件,处理错误情况 */ export declare const decodeURIComponentUrl: (url: string) => string; /** * 查找并解析媒体元素(img/video/iframe) */ export declare const findImageElement: (str: string) => any; /** * 根据媒体元素信息创建编辑器节点 */ export declare const createMediaNodeFromElement: (mediaElement: ReturnType) => import("../../../..").CardNode | { text: string; } | null; /** * 标准 HTML 元素列表 * 这些标签会被正常解析为 HTML,其他标签会被当作普通文本处理 */ export declare const STANDARD_HTML_ELEMENTS: Set; /** * 检查 HTML 标签是否为标准元素 * @param htmlString - HTML 字符串 * @returns 是否为标准 HTML 元素 */ export declare function isStandardHtmlElement(htmlString: string): boolean; /** * 解析 Markdown 得到 schema 的回调,用于

内部解析 */ type ParseMarkdownFn = (md: string) => { schema: any[]; }; /** * 查找附件链接 */ export declare const findAttachment: (str: string) => { url: string; size: number; } | null; /** * 处理HTML节点 * @param currentElement - 当前处理的HTML元素 * @param parent - 父级元素,用于判断上下文 * @param htmlTag - HTML标签栈,用于跟踪嵌套的HTML标签 * @param parseMarkdownFn - 可选,解析 Markdown 得到 schema,用于

内部按 Markdown 解析(如 ** 加粗) * @returns 返回包含解析后元素和上下文属性的对象 */ export declare const handleHtml: (currentElement: any, parent: any, htmlTag: any[], parseMarkdownFn?: ParseMarkdownFn) => { el: any; contextProps: any; htmlTag: any[]; }; /** * 预处理特殊标签(think/answer),将其转换为代码块格式 * @param markdown - 原始 Markdown 字符串 * @param tagName - 标签名称(think 或 answer) * @returns 处理后的 Markdown 字符串 */ export declare function preprocessSpecialTags(markdown: string, tagName: 'think' | 'answer'): string; /** * 预处理 标签,将其转换为 ```think 代码块格式 * @param markdown - 原始 Markdown 字符串 * @returns 处理后的 Markdown 字符串 */ export declare function preprocessThinkTags(markdown: string): string; /** * 预处理所有非标准 HTML 标签,提取其内容(删除标签本身) * @param markdown - 原始 Markdown 字符串 * @returns 处理后的 Markdown 字符串 */ export declare function preprocessNonStandardHtmlTags(markdown: string): string; export {};