import { NonPrimitive, Nullable } from '../types'; import { Bottom, NonArray } from './types'; export declare const isBlank: (value: T) => value is Nullable; export declare const isPresent: (value: T) => value is NonNullable; export declare const isFunction: (value: any) => value is Function; export declare const isBoolean: (value: any) => value is boolean; export declare const isString: (value: any) => value is string; export declare const isNumber: (value: any) => value is number; export declare const isArray: (value: any) => value is T[]; /** * * @example * * ```ts * type MyMap = { who: string; age: number } * declare const someObj: MyMap | string | number * * if (isObject(someObj)) { * // $ExpectType MyMap * someObj * } else { * // $ExpectType string | number * someObj * } * ``` */ export declare const isObject: (value: T) => value is NonArray>>; export declare const isDate: (value: any) => value is Date; export declare const isPromise: (value: any) => value is PromiseLike; /** * * Checks if string OR array OR object is empty. * If you provide another value to check it will throw an error. */ export declare const isEmpty: (value: "" | never[] | Record | T) => value is Bottom; //# sourceMappingURL=type-guards.d.ts.map