1 | import { ValidationFunction, Values } from './interfaces';
|
2 | export declare function isExisty<V>(value: V): boolean;
|
3 | export declare function isEmpty<V>(value: V): boolean;
|
4 | export declare function isDefaultRequiredValue(value: unknown): boolean;
|
5 | export declare function matchRegexp<V>(_values: Values, value: V, regexp: RegExp): boolean;
|
6 | interface Validations<V> {
|
7 | [key: string]: ValidationFunction<V>;
|
8 | }
|
9 | declare const validations: Validations<any>;
|
10 | export declare const addValidationRule: <V>(name: string, func: ValidationFunction<V>) => void;
|
11 | export default validations;
|