UNPKG

@bufbuild/cel

Version:

A CEL evaluator for ECMAScript

17 lines (16 loc) 724 B
import { type CelMap } from "./map.js"; import { type CelList } from "./list.js"; import { type ReflectMessage, type ScalarValue } from "@bufbuild/protobuf/reflect"; import { type CelInput, type CelValue } from "./type.js"; /** * Converts a CelInput to a CelValue. */ export declare function toCel(v: CelInput): CelValue; /** * Unwraps the given value if it is an Any. * * If the Any represents a Wrapper type or google.protobuf.Value/Struct/ListValue, it also converts them * to their corresponding CelValue. */ export declare function unwrapAny(v: CelValue): CelValue; export declare function reflectMsgToCel(v: ReflectMessage): ReflectMessage | ScalarValue | import("./uint.js").CelUint | CelList | CelMap | null;