@matechat/core
Version:
前端智能化场景解决方案UI库,轻松构建你的AI应用。
13 lines (12 loc) • 459 B
TypeScript
import type { Token } from 'markdown-it';
import { VNode } from 'vue';
export interface ASTNode {
nodeType: string;
openNode: Token | null;
closeNode: Token | null;
children: (ASTNode | Token)[];
vNodeKey: string;
}
export declare const tokensToAst: (tokens: Token[]) => ASTNode[];
export declare const htmlToVNode: (htmlString: string) => (VNode | string)[];
export declare const isValidTagName: (tagName: string | undefined) => boolean;