import type { Environment } from '@marcbachmann/cel-js'; import type { WorkflowExpression } from '../expression/workflow-expression.js'; export type WorkflowExpressionEvaluationContext = Readonly>; export type WorkflowExpressionEvaluationValue = unknown; export type WorkflowExpressionEnvironment = Pick; export declare function evaluateWorkflowExpression(expression: WorkflowExpression, context: WorkflowExpressionEvaluationContext): WorkflowExpressionEvaluationValue; /** * Evaluate an expression against a caller-owned CEL environment. * * The caller-owned environment can provide a narrower or broader function set * when the shared workflow registry is not the right boundary. */ export declare function evaluateWorkflowExpressionWithEnvironment(expression: WorkflowExpression, context: WorkflowExpressionEvaluationContext, environment: WorkflowExpressionEnvironment): WorkflowExpressionEvaluationValue; /** * Evaluates a predicate while preserving the historical boolean-only result mapping. * Use `evaluateWorkflowPredicateFailClosed` when non-boolean results must be reported. */ export declare function evaluateWorkflowPredicate(expression: WorkflowExpression, context: WorkflowExpressionEvaluationContext): boolean; export interface FailClosedPredicateOutcome { readonly value: boolean; readonly evaluationFailed: boolean; } export declare function evaluateWorkflowPredicateFailClosed(expression: WorkflowExpression, context: WorkflowExpressionEvaluationContext): FailClosedPredicateOutcome; //# sourceMappingURL=evaluate-workflow-expression.d.ts.map