import { NestedKeys, NestedValue, PlainObject } from "../../models.mjs"; //#region src/internal/value/get.d.ts /** * Get the value from an object using a known path * * @param data Object to get value from * @param path Path for value * @returns Found value, or `undefined` * * @example * ```typescript * const data = {foo: {bar: {baz: 42}}}; * * getValue(data, 'foo'); // => {bar: {baz: 42}} * getValue(data, 'foo.bar'); // => {baz: 42} * getValue(data, 'foo.bar.baz'); // => 42 * getValue(data, 'foo.nope'); // => undefined * ``` */ declare function getValue>(data: Data, path: Path): NestedValue; /** * Get the value from an object using an unknown path * * @param data Object to get value from * @param path Path for value * @param ignoreCase If `true`, path matching is case-insensitive * @returns Found value, or `undefined` * * @example * ```typescript * const data = {foo: {bar: {baz: 42}}}; * * getValue(data, 'foo'); // => {bar: {baz: 42}} * getValue(data, 'foo.bar'); // => {baz: 42} * getValue(data, 'Foo.Bar.Baz', true); // => 42 * getValue(data, 'foo.nope'); // => undefined * ``` */ declare function getValue(data: Data, path: string, ignoreCase?: boolean): unknown; //#endregion export { getValue };