import { Parser, Success, ResultInterface, Failure } from "parsimmon"; import { FixArg, LaTeXRaw, MOptArg, OptArg, SubOrSuperScript, SubOrSuperSymbol, TeXArg, TeXComm, TeXComment, TeXEnv, TeXMath } from "./Syntax"; import { TeXRaw } from "./Syntax"; import { LatexMode } from "./LatexMode"; export interface ParserConf { verbatimEnvironments: String[]; } export declare const defaultParserConf: ParserConf; export declare const takeTill: (predicate: (c: string) => boolean) => Parser; export declare const notTextDefault: { "$": boolean; "%": boolean; "\\": boolean; "{": boolean; "]": boolean; "}": boolean; }; export declare const notTextMathMode: { "^": boolean; "_": boolean; "$": boolean; "%": boolean; "\\": boolean; "{": boolean; "]": boolean; "}": boolean; }; export declare const notTextMathModeAndNotClosingBracket: { "^": boolean; "_": boolean; "$": boolean; "%": boolean; "\\": boolean; "{": boolean; "}": boolean; }; export declare const notTextDefaultAndNotClosingBracket: { "$": boolean; "%": boolean; "\\": boolean; "{": boolean; "}": boolean; }; export declare function textParser(notText: { [k: string]: boolean; }): Parser; export declare const comment: Parser; export declare const specialCharsDefault: { "'": boolean; "(": boolean; ")": boolean; ",": boolean; ".": boolean; "-": boolean; '"': boolean; "!": boolean; "^": boolean; "$": boolean; "&": boolean; "#": boolean; "{": boolean; "}": boolean; "%": boolean; "~": boolean; "|": boolean; "/": boolean; ":": boolean; ";": boolean; "=": boolean; "[": boolean; "]": boolean; "\\": boolean; "`": boolean; " ": boolean; }; export declare function isSpecialCharacter(char: string, specialChars?: { [k: string]: boolean; }): boolean; export declare function isNotText(notText: { [k: string]: boolean; }): (char: string) => boolean; export declare const mathSymbol: Parser; export declare const commandSymbol: Parser; export declare function latexBlockParser(mode: LatexMode, sub?: string, sup?: string): Parser; export declare const latexBlockParserTextMode: Parser; export declare const latexBlockParserMathMode: (sub: string, sup: string) => Parser; export declare const latexParser: Parser; export declare const env: Parser; export declare const environment: Parser; export declare const specialChar: Parser; export declare const endCmd: (c: string) => boolean; export declare function fixArg(mode: LatexMode): Parser; export declare function optArg(mode: LatexMode): Parser; export declare function cmdArg(mode: LatexMode): Parser; export declare function cmdArgs(mode: LatexMode): Parser; export declare function command(mode: LatexMode): Parser; export declare const subOrSuperscriptSymbolParser: (a: string, b: string) => Parser; export declare function shiftedScript(mode: LatexMode, sub: string, sup: string): Parser; export declare const dolMath: Parser; export declare function isOk(parse?: ResultInterface): parse is Success; export declare function isNotOk(parse?: any): parse is Failure; export declare function mustBeOk(parse?: ResultInterface): Success;