@bufbuild/cel
Version:
A CEL evaluator for ECMAScript
9 lines (8 loc) • 336 B
TypeScript
import { type ParsedExpr } from "@bufbuild/cel-spec/cel/expr/syntax_pb.js";
/**
* Parses a CEL expression string into an abstract syntax tree (AST).
*
* This is the first stage of CEL evaluation. The resulting ParsedExpr
* can be passed to plan() for execution planning.
*/
export declare function parse(expr: string): ParsedExpr;