import { Token } from './index'; import { AtomToken } from './atom'; import type { LintError, Config } from '../base'; import type { AttributesToken } from '../internal'; export type AttributeTypes = 'ext-attr' | 'html-attr' | 'table-attr'; /** * attribute of extension and HTML tags * * 扩展和HTML标签属性 * @classdesc `{childNodes: [AtomToken, Token|AtomToken]}` */ export declare abstract class AttributeToken extends Token { #private; readonly name: string; readonly childNodes: readonly [ AtomToken, Token ]; abstract get firstChild(): AtomToken; abstract get lastChild(): Token; abstract get parentNode(): AttributesToken | undefined; abstract get nextSibling(): AtomToken | this | undefined; abstract get previousSibling(): AtomToken | this | undefined; get type(): AttributeTypes; /** tag name / 标签名 */ get tag(): string; /** whether the quotes are balanced / 引号是否匹配 */ get balanced(): boolean; /** * @param type 标签类型 * @param tag 标签名 * @param key 属性名 * @param quotes 引号 * @param equal 等号 * @param value 属性值 */ constructor(type: AttributeTypes, tag: string, key: string, quotes: readonly [string?, string?], config: Config, equal?: string, value?: string, accum?: Token[]); /** * Get the attribute value * * 获取属性值 */ getValue(): string; }