import { Prop } from '../typings/types'; interface PropFunc { >(prop: K, obj: O): O[K]; (prop: K, obj: any): undefined; (prop: K): { >(obj: O): O[K]; (obj: any): undefined; }; } /** * Returns a function that when supplied an object returns the indicated * property of that object, if it exists. * * @param {String} prop The property name * @param {Object} obj The object to query * @return {*} The value at `obj.p`. * * @example * * prop('x', {x: 100}); //=> 100 * prop('x', {}); //=> undefined */ declare const _default: PropFunc; export default _default;