import Parser from '../../index'; import { Token } from '../index'; import { TagPairToken } from './index'; import { AttributesToken } from '../attributes'; import type { LintError } from '../../base'; import type { AttributesParentBase } from '../../mixin/attributesParent'; export interface ExtToken extends AttributesParentBase { } /** * extension tag * * 扩展标签 * @classdesc `{childNodes: [AttributesToken, Token]}` */ export declare abstract class ExtToken extends TagPairToken { closed: true; readonly childNodes: readonly [AttributesToken, Token]; abstract get firstChild(): AttributesToken; abstract get lastChild(): Token; abstract get children(): [AttributesToken, Token]; abstract get firstElementChild(): AttributesToken; get type(): 'ext'; /** * @param name 标签名 * @param attr 标签属性 * @param inner 内部wikitext * @param closed 是否封闭 * @param include 是否嵌入 */ constructor(name: string, attr?: string, inner?: string, closed?: string, config?: Parser.Config, include?: boolean, accum?: Token[]); cloneNode(): this; }