wikiparser-node
Version:
A Node.js parser for MediaWiki markup with AST
27 lines (26 loc) • 1.19 kB
TypeScript
import { Token } from './index';
import { CommentToken } from './nowiki/comment';
import type { Config, LintError } from '../base';
import type { AstText, AttributesToken, ExtToken } from '../internal';
/**
* `<hiero>`
* @classdesc `{childNodes: (AstText|CommentToken)[]}`
*/
export declare abstract class CommentedToken extends Token {
readonly childNodes: readonly (AstText | CommentToken)[];
abstract get firstChild(): AstText | CommentToken | undefined;
abstract get lastChild(): AstText | CommentToken | undefined;
abstract get nextSibling(): undefined;
abstract get previousSibling(): AttributesToken | undefined;
abstract get parentNode(): ExtToken | undefined;
abstract get children(): CommentToken[];
abstract get firstElementChild(): CommentToken | undefined;
abstract get lastElementChild(): CommentToken | undefined;
abstract get previousElementSibling(): AttributesToken | undefined;
abstract get nextElementSibling(): undefined;
abstract get parentElement(): ExtToken | undefined;
get type(): 'ext-inner';
/** @class */
constructor(wikitext?: string, config?: Config, accum?: Token[]);
cloneNode(): this;
}