site/node_modules/mathjax-full/js/input/tex/ParseOptions.d.ts

32 lines
1.1 KiB
TypeScript
Raw Permalink Normal View History

2024-10-14 06:09:33 +00:00
import StackItemFactory from './StackItemFactory.js';
import { Tags } from './Tags.js';
import { SubHandlers } from './MapHandler.js';
import { NodeFactory } from './NodeFactory.js';
import { MmlNode } from '../../core/MmlTree/MmlNode.js';
import TexParser from './TexParser.js';
import { OptionList } from '../../util/Options.js';
import { ParserConfiguration } from './Configuration.js';
export default class ParseOptions {
handlers: SubHandlers;
options: OptionList;
itemFactory: StackItemFactory;
nodeFactory: NodeFactory;
tags: Tags;
packageData: Map<string, any>;
parsers: TexParser[];
root: MmlNode;
nodeLists: {
[key: string]: MmlNode[];
};
error: boolean;
constructor(configuration: ParserConfiguration, options?: OptionList[]);
pushParser(parser: TexParser): void;
popParser(): void;
get parser(): TexParser;
clear(): void;
addNode(property: string, node: MmlNode): void;
getList(property: string): MmlNode[];
removeFromList(property: string, nodes: MmlNode[]): void;
private inTree;
}