import { Prop, ObjBase } from '../typings/types'; interface PropApply { >(prop: K, fn: ObjBase, obj: O): R; (prop: K, fn: ObjBase, obj: any): R; (prop: K, fn: ObjBase): (obj: any) => R; (prop: K): { (fn: ObjBase, obj: any): R; (fn: ObjBase): (obj: any) => R; }; } /** * Returns the result of `fn` with value of property in `obj`. * * @param {String} propName The property name to apply. * @param {Function} fn function to apply * @param {Object} obj The object to retrieve the property from. * @return {*} result of calling fn with property. * * @example * * propApply('a', x => 'is ' + x, {a: 2}); //=> is 2 * propApply('b', x => x > 0, {b: 2}); //=> true */ declare const _default: PropApply; export default _default;