export declare const none: unique symbol; /** * Returns the value in `obj` at `path`. If the given path does not exist, * the symbol `none` is returned. * * @example * ``` * // -> 'something' * select( * { a: { deeply: [{ nested: { object: 'something' } }] } }, * 'a', 'deeply', 0, 'nested', 'object' * ) * ``` */ declare const select: (obj: T, ...path: P) => PickPath; export default select; declare type AnyNarrow = string | number | symbol | boolean | undefined | null | Record; declare type PickPath = P extends [] ? T : T extends Map ? (P[0] extends K ? V | typeof none : typeof none) : P[0] extends keyof T ? PickPath : unknown extends T ? unknown : typeof none;