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

21 lines
1.2 KiB
TypeScript
Raw Permalink Normal View History

2024-10-14 06:09:33 +00:00
import TexParser from '../TexParser.js';
import { Symbol } from '../Symbol.js';
import { Args, Attributes, ParseMethod } from '../Types.js';
declare namespace NewcommandUtil {
function disassembleSymbol(name: string, symbol: Symbol): Args[];
function assembleSymbol(args: Args[]): Symbol;
function GetCSname(parser: TexParser, cmd: string): string;
function GetCsNameArgument(parser: TexParser, name: string): string;
function GetArgCount(parser: TexParser, name: string): string;
function GetTemplate(parser: TexParser, cmd: string, cs: string): number | string[];
function GetParameter(parser: TexParser, name: string, param: string): string;
function MatchParam(parser: TexParser, param: string): number;
function addDelimiter(parser: TexParser, cs: string, char: string, attr: Attributes): void;
function addMacro(parser: TexParser, cs: string, func: ParseMethod, attr: Args[], symbol?: string): void;
function addEnvironment(parser: TexParser, env: string, func: ParseMethod, attr: Args[]): void;
const NEW_DELIMITER = "new-Delimiter";
const NEW_COMMAND = "new-Command";
const NEW_ENVIRONMENT = "new-Environment";
}
export default NewcommandUtil;