import { Token } from './index'; import { SyntaxToken } from './syntax'; import type { Config, LintError } from '../base'; import type { AstText } from '../internal'; /** * section heading * * 章节标题 * @classdesc `{childNodes: [Token, SyntaxToken]}` */ export declare abstract class HeadingToken extends Token { #private; readonly childNodes: readonly [Token, SyntaxToken]; abstract get firstChild(): Token; abstract get lastChild(): SyntaxToken; abstract get nextSibling(): AstText | undefined; get type(): 'heading'; /** level of the heading / 标题层级 */ get level(): number; /** * @param level 标题层级 * @param input 标题文字 */ constructor(level: number, input: readonly [string?, string?], config: Config, accum?: Token[]); }