import { StackItem } from './StackItem.js'; import { Token } from './Token.js'; import TexParser from './TexParser.js'; export type Args = boolean | number | string | null; export type Attributes = Record; export type Environment = Record; export type ParseInput = [TexParser, string]; export type ParseResult = void | boolean | StackItem | symbol; export type ParseMethod = (parser: TexParser, c: string | Token | StackItem, ...rest: any[]) => ParseResult;