import type { LookupOrder } from "../core/managers/range-eval-order-builder"; import { type ErrorEvaluationResult, type SingleEvaluationResult } from "../core/types"; import type { EvaluationContext } from "../evaluator/evaluation-context"; import type { FormulaEvaluator } from "../evaluator/formula-evaluator"; import type { FunctionNode } from "../parser/ast"; /** * Creates an array of all values from arguments of a function node * Returns SingleEvaluationResult for each value found in the arguments * * This is a shared utility used by all basic aggregation functions (SUM, MIN, MAX, AVERAGE) * to iterate over their arguments in a consistent way. * * @param evaluator - The formula evaluator instance * @param node - The function node containing arguments * @param context - The evaluation context * @returns Array of SingleEvaluationResult for each value in the arguments */ export declare function createArgumentIterator(evaluator: FormulaEvaluator, node: FunctionNode, context: EvaluationContext, lookupOrder: LookupOrder): { type: "values"; values: SingleEvaluationResult[]; } | ErrorEvaluationResult;