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' | 'noinclude' | 'quote'; /** * 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; abstract get children(): []; abstract get firstElementChild(): undefined; abstract get lastElementChild(): undefined; /** text content / 纯文本部分 */ get innerText(): string; /** @param wikitext default: `''` */ constructor(wikitext?: string, config?: Config, accum?: Token[]); cloneNode(): this; /** * @override * @param str new text / 新文本 */ setText(str: string): string; } export {};