import { i as EvaluationContext } from "./evaluate-DXlKxvts.mjs"; import { PredicateNode } from "trilean/tree"; import { Evaluation } from "trilean/evaluation"; //#region src/predicate.d.ts /** The kinds of unsupported nodes in a predicate tree, in the order they are met. */ export declare function unsupportedPredicateKinds(tree: unknown): string[]; /** * Check a rule's `predicate` and return it as a tree. * * @throws A `ZodError` when it is not a predicate tree, or an `Error` naming the unsupported node kinds: a policy built in code does not pass through the schema, and a predicate the evaluator cannot judge soundly must not be evaluated. */ export declare function parsePredicate(predicate: unknown): PredicateNode; /** A predicate's result under a context. */ export declare function evaluatePredicateCondition(predicate: PredicateNode, ctx: EvaluationContext): Evaluation; //#endregion //# sourceMappingURL=predicate.d.mts.map