import { Expression } from "../expressions/Expression"; import { InfixParselet } from "./InfixParslet"; import { PrefixParselet } from "./PrefixParselet"; import { Token } from "./Token"; import { tokenTypes } from "./tokenizer/TokenType"; export declare class Parser { private tokens; private prefixParselets; private infixParselets; private parseOutline; constructor(prefixParselets: { [key in keyof typeof tokenTypes]?: PrefixParselet; }, infixParselets: { [key in keyof typeof tokenTypes]?: InfixParselet; }); maybeConsume(tokenType?: string, value?: any): Token | null; maybeConsume(tokenType?: string[], value?: any): Token | null; consume(tokenType?: string, value?: any): Token; private consumeInternal; done(): boolean; peek(tokenType?: string, offset?: number): Token | null; setTokens(tokens: Token[]): this; whitespace(): Token | undefined; parseInlineExpression(precedence?: number): Expression; parseExpression(precedence?: number): Expression; }