import { Token } from '../index'; import type { Config } from '../../base'; import type { AstText } from '../../internal'; declare type NowikiTypes = 'ext-inner' | 'comment' | 'dd' | 'double-underscore' | 'hr' | 'list' | 'quote' | 'noinclude'; /** * text-only token that will not be parsed * * 纯文字Token,不会被解析 * @classdesc `{childNodes: [AstText]}` */ export declare abstract class NowikiBaseToken extends Token { abstract get type(): NowikiTypes; readonly childNodes: readonly [AstText]; abstract get firstChild(): AstText; abstract get lastChild(): AstText; /** text content / 纯文本部分 */ get innerText(): string; /** @param wikitext default: `''` */ constructor(wikitext?: string, config?: Config, accum?: Token[]); } export {};