UNPKG

505 BTypeScriptView Raw
1import { QuotedToken, Token } from '../tokens';
2import type { Context } from '../context';
3export declare class Expression {
4 private postfix;
5 constructor(tokens: IterableIterator<Token>);
6 evaluate(ctx: Context, lenient?: boolean): Generator<unknown, unknown, unknown>;
7 valid(): boolean;
8}
9export declare function evalToken(token: Token | undefined, ctx: Context, lenient?: boolean): IterableIterator<unknown>;
10export declare function evalQuotedToken(token: QuotedToken): string;