import { Constraint, RuleSpec, ValidationResult, ValidationSeverity, When } from '@xh/hoist/data'; /** * Immutable object representing a validation rule. */ export declare class Rule { readonly check: Constraint[]; readonly when: When; constructor(spec: RuleSpec); } /** * Utility to determine the maximum severity from a list of ValidationResults. * * @param validationResults - list of ValidationResults to evaluate. * @returns The highest severity level found, or null if none. */ export declare function maxSeverity(validationResults: ValidationResult[]): ValidationSeverity;