export declare const SVG_NS = "http://www.w3.org/2000/svg"; export declare function isSvgTag(tag: string | undefined): boolean; export declare function copyObjArray(obj: any, num: number): any[]; export declare function isTextNode(node: any): any; export declare function isLeafNode(node: HTMLElement): boolean; /** * 判断一个节点是否处于 SVG 子树内。 * SVG 里的 text/tspan 不能嵌套 HTML ,否则渲染器直接忽略; * 外层调用方应在创建高亮元素前调用此函数,决定用 HTML span 还是 SVG tspan。 */ export declare function isInSvgText(node: Node | null | undefined): boolean; export declare function createHighlightSpan(tag: string | undefined, props: Record): HTMLElement;