import { type RuleContext, type RuleValue } from "./types.mjs"; /** * Resolve a rule to a value against `ctx`. Accepts a `{$rule}` placeholder or a * bare node. A malformed or unknown node throws a `ChartRuleError` (never a * native `TypeError`), so a caller reading an untrusted, deserialized rule can * catch every failure with one type. When the rule is a colour placeholder, the * result is checked to be a colour (`string | null`) — a rule that resolves to a * number or boolean is a `RuleTypeError`, not something the renderer paints. * * Pure and non-recursive: the only inputs are the validated flat rule and the * context. No clock, randomness, callbacks, or I/O. */ export declare function evaluate(rule: unknown, ctx: RuleContext): RuleValue; //# sourceMappingURL=evaluate.d.mts.map