/** * Conditional Aggregate Functions — Native RuntimeValue Implementation */ import type { RuntimeValue, ScalarValue } from "../runtime/values.js"; /** * Build a criteria predicate from a ScalarValue. * Matches Excel SUMIF/COUNTIF criteria semantics: * - number → exact numeric match * - boolean → exact boolean match * - string with operator prefix (">5", "<=10", "<>abc") → comparison * - string with wildcards (* ?) → pattern match * - plain string → case-insensitive exact match (or numeric if parseable) */ export declare function buildCriteriaPredicateRV(criteria: ScalarValue): (v: ScalarValue) => boolean; /** * Scan a criteria string for an unescaped `*` or `?`. A backslash-style * escape in Excel is `~`; so `~*` and `~?` are literals, while `*` and `?` * on their own or at a position not preceded by `~` count as wildcards. */ export declare function fnSUMIF(args: RuntimeValue[]): RuntimeValue; export declare function fnSUMIFS(args: RuntimeValue[]): RuntimeValue; export declare function fnCOUNTIF(args: RuntimeValue[]): RuntimeValue; export declare function fnCOUNTIFS(args: RuntimeValue[]): RuntimeValue; export declare function fnAVERAGEIF(args: RuntimeValue[]): RuntimeValue; export declare function fnAVERAGEIFS(args: RuntimeValue[]): RuntimeValue; export declare function fnMAXIFS(args: RuntimeValue[]): RuntimeValue; export declare function fnMINIFS(args: RuntimeValue[]): RuntimeValue;