import { Paths, Prop } from '../typings/types'; export interface Path { >(path: [K], obj: O): O[K]; (path: [K]): >(obj: O) => O[K]; (path: Paths, obj: any): T | undefined; (path: Paths): (obj: any) => T | undefined; } /** * Retrieve the value at a given path. * * @param {[String]} paths The path to use. * @param {Object} obj The object to retrieve the nested property from. * @return {*} The data at `path`. * @example * * path(['a', 'b'], {a: {b: 2}}); //=> 2 * path(['a', 'b'], {c: {b: 2}}); //=> undefined */ export declare const path: Path; export default path;