/** * ValidationResult is an object with errors. * Empty object means valid entity. */ export declare type ValidationResult = Record; /** * Validator is a function * that accepts a value to be validated * and returns a validation result. */ export declare type Validator = (value: T) => ValidationResult;