import type { Expressions, TypedLambdaExpression } from "./expressions/index.js"; export type ParsedFunction = (context?: unknown) => T; /** * A class for converting expressions into executable functions. */ export declare class EvaluatorAsFunction { /** * Creates an instance of EvaluatorAsFunction. */ constructor(); /** * Evaluates an expression into a function or value. * @template T - The return type of the evaluated expression. * @param {TypedLambdaExpression} expression - The typed lambda expression to evaluate. * @returns {T} The evaluated value or function. */ eval unknown>(expression: TypedLambdaExpression): T; /** * Evaluates an expression with length into a function. * @template T - The return type of the evaluated function. * @param {ExpressionsWithLength} expression - The expression with length to evaluate. * @returns {ParsedFunction} The evaluated function. */ eval(expression: Expressions): ParsedFunction; }