import { Boxed, ValidationErrors } from 'pure-forms'; export interface NotEqualToValidationError { comparand: T; actual: T; } declare module 'pure-forms/src/state' { interface ValidationErrors { notEqualTo?: NotEqualToValidationError; } } /** * A validation function that requires the value to be strictly not equal (i.e. `!==`) * to another value. * * The validation error returned by this validation function has the following shape: * * ```typescript * { * notEqualTo: { * comparand: T; * actual: T; * }; * } * ``` * * Usually you would use this validation function in conjunction with the `validate` * update function to perform synchronous validation in your reducer: * * ```typescript * updateGroup({ * name: validate(notEqualTo('John Doe')), * }) * ``` */ export declare function notEqualTo(comparand: T): = T>(value: TV) => ValidationErrors;