import { Prop } from '../typings/types'; interface PropOr { >(prop: K, value: V, obj: O): O[K]; (prop: K, value: V, obj: any): V; (prop: K, value: V): { >(obj: O): O[K]; (obj: any): V; }; (prop: K): { >(value: V, obj: O): O[K]; (value: V): V; (value: V): { >(obj: O): O[K]; (obj: any): V; }; }; } /** * If the given, non-null object has an own property with the specified name, * returns the value of that property. Otherwise returns the provided default * value. * * @param {String} propName The name of the property to return. * @param {*} value The default value. * @param {Object} obj The object to query. * @return {*} The value of given property of the supplied object or the default value. * @example * * var alice = { * name: 'ALICE', * age: 101 * }; * * propOr('name', 'Bob')(alice); //=> 'ALICE' * propOr('favoriteLibrary', 'react')(alice); //=> 'react' */ declare const _default: PropOr; export default _default;