import { DEFAULT_OPTIONS } from './constants'; import type { Decompose, DecomposeOptions, Ru } from '../types.types'; import type { NotUndefined } from '../libs/bemedev/globals/types'; export type GetByKey_F = >(obj: T, key: Extract) => Decompose[K]; export type GetByKeyDefined_F = >(obj: T, key: Extract) => NotUndefined[K]>; export type GetByKeyOption_F = (val: O) => >(obj: T, key: Extract) => Decompose[K]; export interface GetByKey { (obj: any, key: string): any; low: (obj: any, key: string) => any; typed: GetByKey_F; defined: GetByKeyDefined_F; options: GetByKeyOption_F; } /** * Retrieves a value from an object by a specified key. * @param obj The object to retrieve the value from * @param key The key to retrieve the value for, can be a nested key (e.g. 'a.b.c') * @returns The value associated with the specified key in the object * * @see {@linkcode Decompose} for more details on object decomposition. */ export declare const getByKey: GetByKey; //# sourceMappingURL=get.d.ts.map