import { Optional } from '../../typings/standard-types'; export declare namespace Checkers { const isTrue: (value: any) => boolean; const getClass: (obj: any) => Optional; const getType: (obj: any) => string; const checkTypes: (types: string[], ...args: any[]) => void; const isNull: (value: any) => boolean; const isUndefined: (value: any) => boolean; const isNotNull: (value: any) => boolean; const isNotUndefined: (value: any) => boolean; const isMobileBrowser: (navigator: string) => boolean; /** * isValidSymbol checks to see if the symbol is of correct type and format * @param {String} symbol the symbol being checked * @return {Boolean} returns true if symbol is a string and valid format */ const isValidSymbol: (symbol: any) => boolean; /** * A crude way of determining if an object is a window. * Taken from jQuery 1.6.1 * @function isWindow * @see {@link http://www.jquery.com/ jQuery} */ const isWindow: (obj: any) => boolean; /** * Taken from jQuery 1.6.1 * @function type * @see {@link http://www.jquery.com/ jQuery} */ const type: (obj: any) => string; /** * Taken from jQuery 1.6.1 * @function isPlainObject * @see {@link http://www.jquery.com/ jQuery} */ const isPlainObject: (obj: any) => boolean; const isBuffer: (value: any) => boolean; const isObjectWith: (obj: any, prop: PropertyKey) => boolean; const isInRange: (num: number, min: number, max: number, includeBounds?: boolean) => boolean; const isArrayIndex: (key: string) => boolean; const areEqualNumbers: (num1: number, num2: number) => boolean; const isIntNumber: (value: any) => boolean; const isSafeInt: (value: any) => boolean; const isFloat: (value: any) => boolean; const isIterable: (value: any) => boolean; const isNumber: (value: any) => boolean; const isPositiveDecimal: (value: any) => boolean; const isAlphaNumeric: (value: any) => boolean; const isRealNumber: (value: any) => boolean; const isInteger: (value: any) => boolean; const isString: (value: any) => boolean; const isArray: (value: any) => boolean; const isArray2: (arg: any) => arg is any[]; const isJSON: (value: any) => boolean; const isValidJson: (value: string) => boolean; const inRange: (value: number, { min, max, inclusive }: { min: any; max: any; inclusive?: boolean | undefined; }) => boolean; const isHostname: (value: string) => boolean; const includesUppercase: (value: string) => boolean; const includesLowercase: (value: string) => boolean; const includesDigit: (value: string) => boolean; const matchPattern: (value: any, regExp: any) => boolean; const isEmail: (value: string) => boolean; const isObject: (value: any) => boolean; const isArrayBuffer: (value: any) => boolean; const isDate: (value: any) => boolean; const isPropertyInRange: (obj: any, prop: PropertyKey, low: number, high: number, includeBounds?: boolean) => void; const isPowerOfTwo: (value: number) => boolean; const isNumeric: (num: any) => boolean; const isFunction: (value: any) => boolean; const isBoolean: (value: any) => boolean; const isDomElement: (value: any) => boolean; /** * returns true if value is null or undefined, false - otherwise */ const isNullOrUndefined: (value: any) => boolean; const isRegExp: (value: any) => boolean; const isSet: (value: any) => boolean; const isDigit: (chr: string) => boolean; const checkEmail: (value: string) => boolean; const checkUrl: (value: string) => boolean; const checkPhone: (value: string) => boolean; const checkDateBy: (value: string, regex?: string | RegExp) => boolean; const checkStringByPatterns: (str: string) => boolean; const CHECK_RULES: { required: { msg: string; test(obj: any, load: any): any; }; email: { msg: string; test(obj: any): boolean; }; phone: { msg: string; test(obj: any): RegExpExecArray | null; }; date: { msg: string; test(obj: any): boolean; }; url: { msg: string; test(obj: any): boolean; }; }; const sanitizeNumber: (value: string) => number; const isEmptyWithoutZero: (v: number | string) => boolean; const hasClass: (clazz: string, pattern: string) => boolean; const checkProperty: (obj: any, prop: PropertyKey) => void; /** * Returns a boolean indicating whether the object has the specified property. * @param {Object} obj An object. * @param {String} prop A property name. * @returns {Boolean} */ const hasProperty: (obj: any, prop: PropertyKey) => boolean; /** * @private * @module comparators * @param obj initial input object to verify * @param prop initial input {@link PropertyKey} to validate by * @return {@link boolean} true - if property exists, false - otherwise */ const hasProperty2: (obj: any, prop: PropertyKey) => boolean; /** * Checks for an object to be of the specified type; if not throws an Error. */ const checkType: (obj: any, type: any) => void; /** * Checks for an object to be of the integer number type; if not throws an Error. */ const checkIntNumber: (obj: any) => void; /** * Checks for an object to be of the float number type; if not throws an Error. */ const checkFloatNumber: (obj: any) => void; /** * Checks for an object to be of the number type; if not throws an Error. */ const checkNumber: (obj: any) => void; /** * Checks for an object to be of the date type; if not throws an Error. */ const checkDate: (obj: any) => void; /** * Checks for an object to be of the object type; if not throws an Error. */ const checkObject: (obj: any) => void; /** * Checks for an object to be of the string type; if not throws an Error. */ const checkString: (obj: any) => void; /** * Checks for an object to be of the boolean type; if not throws an Error. */ const checkBoolean: (obj: any) => void; /** * Checks for an object to be of the function type; if not throws an Error. */ const checkFunction: (obj: any) => void; /** * Checks for an object to be of the null type; if not throws an Error. */ const checkNull: (obj: any) => void; /** * Checks for an object to be of the undefined type; if not throws an Error. */ const checkUndefined: (obj: any) => void; /** * Checks for an object to be of the json type; if not throws an Error. */ const checkJson: (obj: any) => void; /** * Checks for an object to be of the array type; if not throws an Error. */ const checkArray: (obj: any) => void; const checkRange: (index: number, array: any[]) => void; const isValidChartName: (name: string) => boolean; const isSpace: (c: string) => boolean; const isHostMethod: (obj: any, prop: PropertyKey) => boolean; const isHostObject: (obj: any, prop: PropertyKey) => boolean; const isObjectLiteral: (obj: any) => boolean; /** * Determines whether an object is instance of a given type. * @param {Object} obj An object. * @param {Function} type The type to check. * @returns {Boolean} */ const is: (obj: any, type: any) => boolean; const isBlankString: (value: string) => boolean; const isEmptyObject: (obj: any) => boolean; } //# sourceMappingURL=checkers.d.ts.map