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

18 lines
573 B
TypeScript
Raw Permalink Normal View History

2024-10-14 06:09:33 +00:00
import { MmlNode } from '../../core/MmlTree/MmlNode.js';
import { StackItem, EnvList } from './StackItem.js';
import StackItemFactory from './StackItemFactory.js';
export default class Stack {
private _factory;
private _env;
global: EnvList;
private stack;
constructor(_factory: StackItemFactory, _env: EnvList, inner: boolean);
set env(env: EnvList);
get env(): EnvList;
Push(...args: (StackItem | MmlNode)[]): void;
Pop(): StackItem;
Top(n?: number): StackItem;
Prev(noPop?: boolean): MmlNode | void;
toString(): string;
}