/** * Type is an alias for . */ export type Type = any; /** * Any is a class used to represent typescript's "any" type. */ export declare class Any { } /** * isObject test. * * Does not consider an Array an object. */ export declare const isObject: (value: Type) => value is object; /** * isArray test. */ export declare const isArray: (arg: any) => arg is any[]; /** * isString test. */ export declare const isString: (value: Type) => value is string; /** * isNumber test. */ export declare const isNumber: (value: Type) => value is number; /** * isBoolean test. */ export declare const isBoolean: (value: Type) => value is boolean; /** * isFunction test. */ export declare const isFunction: (value: Type) => value is Function; /** * isPrim test. */ export declare const isPrim: (value: Type) => boolean; /** * isNull tests whether the value is null or undefined. */ export declare const isNull: (value: Type) => boolean; /** * is performs a typeof of check on a type. */ export declare const is: (expected: string) => (value: A) => boolean; /** * test a value at runtime to determine if it conforms to a type. * * This function exists to provide best effort type pattern matching * capabilities. It is based on the following rules: * * string -> Matches on the value of the string. * number -> Matches on the value of the number. * boolean -> Matches on the value of the boolean. * object -> Each key of the object is matched on the value, all must match. * function -> Treated as a constructor and results in an instanceof check or * for String,Number and Boolean, this uses the typeof check. If * the function is RegExp then we uses the RegExp.test function * instead. */ export declare const test: (pattern: T, value: V) => boolean; /** * show the type of a value. * * Note: This may crash if the value is an * object literal with recursive references. */ export declare const show: (value: A) => string; /** * toString casts a value to a string. * * If the value is null or undefined an empty string is returned instead of * the default. */ export declare const toString: (val: Type) => string;