export declare enum NodeType { Document = "document", BlockQuote = "blockQuote", List = "list", Item = "item", Paragraph = "paragraph", Head = "head", Table = "table", TableThead = "tableThead", TableTh = "tableTh", TableTbody = "tableTbody", TableTr = "tableTr", TableTd = "tableTd", Emph = "emph", Strong = "strong", Link = "link", Image = "image", CustomInline = "customInline", CustomBlock = "customBlock", CodeBlock = "codeBlock", HtmlBlock = "htmlBlock", ThematicBreak = "thematicBreak", Text = "text", Underline = "underline", Checkbox = "checkbox", Del = "del", Code = "code" } export declare class MNode { type: NodeType; parent: MNode | null; firstChild: MNode | null; lastChild: MNode | null; prev: MNode | null; next: MNode | null; open: boolean; stringContent: string; sourceStart: number; sourceEnd: number; blockMarkerBefore: string | undefined; blockMarkerAfter: string | undefined; marker: string; isShow: boolean; constructor(sourceStart: number); unlink(): void; appendChild(mnode: MNode): void; prependChild(mnode: MNode): void; insertAfter(mnode: MNode): void; insertBefore(mnode: MNode): void; setStringContent(stringContent: string): void; getStringContent(): string; /** 段落延续规则怕判断(当前节点块是否可包含跨行内容,即新的一行能否放入当前块,而不用新建节点) */ continue(currentLine: string, offset: number, colum: number): any; /** 在节点解析关闭时运行。理解为node关闭回调钩子,关闭后需要处理的事务,如html替换掉\n、识别段首链接等 */ finalize(sourceEnd?: number): void; /** 是否能包含类型为 nodeType 的子块 */ canContain(mnode: MNode): boolean; } export default MNode;