UNPKG

mathup

Version:

Easy MathML authoring tool with a quick to write syntax

29 lines 886 B
/** * @typedef {import("../tokenizer/index.js").Token} Token * @typedef {import("./index.js").Node} Node * @typedef {import("./index.js").Sentence} Sentence * * @typedef {object} State * @property {Token[]} tokens * @property {number} start * @property {Node[]} stack * @property {number} nestLevel * @property {(token: Token) => boolean} [stopAt] * @property {string[]} [textTransforms] * * @param {Token[]} tokens * @returns {Sentence} */ export default function parse(tokens: Token[]): Sentence; export type Token = import("../tokenizer/index.js").Token; export type Node = import("./index.js").Node; export type Sentence = import("./index.js").Sentence; export type State = { tokens: Token[]; start: number; stack: Node[]; nestLevel: number; stopAt?: (token: Token) => boolean; textTransforms?: string[]; }; //# sourceMappingURL=parse.d.ts.map