UNPKG

wikiparser-node

Version:

A Node.js parser for MediaWiki markup with AST

19 lines (18 loc) 828 B
import { Token } from './index'; import type { Config } from '../base'; declare const atomTypes: readonly ["arg-name", "attr-key", "attr-value", "ext-attr-dirty", "html-attr-dirty", "table-attr-dirty", "converter-flag", "converter-rule-variant", "converter-rule-to", "converter-rule-from", "invoke-function", "invoke-module", "template-name", "link-target", "param-line"]; declare type AtomTypes = typeof atomTypes[number]; /** * plain Token that will not be parsed further * * 不会被继续解析的plain Token */ export declare class AtomToken extends Token { #private; get type(): AtomTypes; set type(value: AtomTypes); /** @class */ constructor(wikitext: string | undefined, type: AtomTypes, config?: Config, accum?: Token[], acceptable?: WikiParserAcceptable); cloneNode(): this; } export {};