import { Prop } from '../typings/types'; interface HasPredicate

{ (obj: undefined | null): false; (obj: U | T): obj is T; (obj: T): obj is T & Record; } interface Has {

(prop: P): HasPredicate

; (prop: Prop, obj: undefined | null): false;

(prop: P, obj: U | T): obj is T;

(prop: P, obj: T): obj is T & Record; } /** * Returns whether or not an object has an own property with the specified name * * @param {String} prop The name of the property to check for. * @param {Object} obj The object to query. * @return {Boolean} Whether the property exists. * @example * * var hasName = has('name'); * hasName({name: 'alice'}); //=> true * hasName({name: 'bob'}); //=> true * hasName({}); //=> false */ declare const _default: Has; export default _default;