1 | import { ValidationError, Validations, Values } from './interfaces';
|
2 | export declare function isArray(value: unknown): value is unknown[];
|
3 | export declare function isObject(value: unknown): value is object;
|
4 | export declare function isTypeUndefined(value: unknown): value is undefined;
|
5 | export declare function isDate(value: unknown): value is Date;
|
6 | export declare function isFunction(value: unknown): value is Function;
|
7 | export declare function isString(value: unknown): value is string;
|
8 | export declare function isNumber(value: unknown): value is number;
|
9 | export declare function isRegex(value: unknown): value is RegExp;
|
10 | export declare function isValueStringEmpty(value: string): boolean;
|
11 | export declare function isValueNullOrUndefined(value: unknown): boolean;
|
12 | export declare function isValueUndefined(value: unknown): boolean;
|
13 | export declare function noop(): void;
|
14 | export declare function protectAgainstParamReassignment(value: unknown): unknown;
|
15 | export declare function isSame(a: unknown, b: unknown): any;
|
16 | interface RulesResult {
|
17 | errors: ValidationError[];
|
18 | failed: string[];
|
19 | success: string[];
|
20 | }
|
21 | export declare function runRules<V>(value: V, currentValues: Values, validations: Validations<V>, validationRules: Validations<V>): RulesResult;
|
22 | export declare function throttle(callback: any, interval: any): (...args: any[]) => void;
|
23 | export {};
|