export declare const enum TokenType { Number = 0, Variable = 1, Equals = 2, Plus = 3, Minus = 4, Star = 5, Times = 6, Slash = 7, Caret = 8, Comma = 9, Lbrace = 10, Rbrace = 11, Lparen = 12, Rparen = 13, Bar = 14, Amp = 15, Dblbackslash = 16, Sqrt = 17, Frac = 18, Sin = 19, Cos = 20, Tan = 21, Csc = 22, Sec = 23, Cot = 24, Arcsin = 25, Arccos = 26, Arctan = 27, Sinh = 28, Cosh = 29, Tanh = 30, Log = 31, Ln = 32, Pi = 33, E = 34, Begin = 35, End = 36, Matrix = 37, Left = 38, Right = 39, Eof = 40, T = 41, Det = 42, Opname = 43, Eigenvalues = 44, Eigenvectors = 45, Cross = 46, Proj = 47, Comp = 48, Norm = 49, Inv = 50, Space = 51 } export declare const lexemeToType: { [key: string]: TokenType; }; /** * A mapping from a token type to the operation it represents. * The operation is the name of a function in the mathjs namespace, * or of a function to be defined in scope (i.e. in the argument to math.evaluate()) */ export declare const typeToOperation: { [key in TokenType]?: string; }; interface Token { lexeme: string; type: TokenType; pos: number; } declare class Token { /** * A token in a TeX string. * @param {string} lexeme string literal of the token * @param {TokenType} type type of the token * @param {Number} pos position of the token in the input string * * @constructor Token */ constructor(lexeme: string, type: TokenType, pos: number); } export default Token;