import { Token } from '../index'; import type { Config } from '../../base'; import type { AttributesToken, SyntaxToken } from '../../internal'; declare type Child = AttributesToken | SyntaxToken; /** * HTML tag * * HTML标签 * @classdesc `{childNodes: [AttributesToken|SyntaxToken]}` */ export declare abstract class TagToken extends Token { #private; readonly childNodes: readonly [Child]; abstract get firstChild(): Child; abstract get lastChild(): Child; abstract get type(): 'html' | 'tvar'; abstract get selfClosing(): boolean | undefined; /** whether to be a closing tag / 是否是闭合标签 */ get closing(): boolean; /** * @param tag 标签名 * @param attr 标签属性 * @param closing 是否闭合 */ constructor(tag: string, attr: Child, closing: boolean, config?: Config, accum?: Token[]); /** * Find the matching tag * * 搜索匹配的标签 */ findMatchingTag(): this | undefined; } export {};