import { ValueKeyIteratee } from '../_internal/ValueKeyIteratee.js'; import { ValueKeyIterateeTypeGuard } from '../_internal/ValueKeyIterateeTypeGuard.js'; /** * Creates a new object composed of the properties that satisfy the predicate function. * * @template T - The type of object values. * @template S - The type of filtered values. * @param {Record | null | undefined} object - The source object. * @param {ValueKeyIterateeTypeGuard} predicate - The function invoked per property. * @returns {Record} Returns the new filtered object. * * @example * const users = { * 'fred': { 'user': 'fred', 'age': 40 }, * 'pebbles': { 'user': 'pebbles', 'age': 1 } * }; * pickBy(users, ({ age }) => age < 40); * // => { 'pebbles': { 'user': 'pebbles', 'age': 1 } } */ declare function pickBy(object: Record | null | undefined, predicate: ValueKeyIterateeTypeGuard): Record; /** * Creates a new object composed of the properties that satisfy the predicate function. * * @template T - The type of object values. * @template S - The type of filtered values. * @param {Record | null | undefined} object - The source object. * @param {ValueKeyIterateeTypeGuard} predicate - The function invoked per property. * @returns {Record} Returns the new filtered object. * * @example * const array = [1, 2, 3, 4]; * pickBy(array, (value) => value % 2 === 0); * // => { 1: 2, 3: 4 } */ declare function pickBy(object: Record | null | undefined, predicate: ValueKeyIterateeTypeGuard): Record; /** * Creates a new object composed of the properties that satisfy the predicate function. * * @template T - The type of object values. * @param {Record | null | undefined} object - The source object. * @param {ValueKeyIteratee} [predicate] - The function invoked per property. * @returns {Record} Returns the new filtered object. * * @example * const object = { 'a': 1, 'b': '2', 'c': 3 }; * pickBy(object, (value) => typeof value === 'string'); * // => { 'b': '2' } */ declare function pickBy(object: Record | null | undefined, predicate?: ValueKeyIteratee): Record; /** * Creates a new object composed of the properties that satisfy the predicate function. * * @template T - The type of object values. * @param {Record | null | undefined} object - The source object. * @param {ValueKeyIteratee} [predicate] - The function invoked per property. * @returns {Record} Returns the new filtered object. * * @example * const array = [1, 2, 3, 4]; * pickBy(array, (value) => value > 2); * // => { 2: 3, 3: 4 } */ declare function pickBy(object: Record | null | undefined, predicate?: ValueKeyIteratee): Record; /** * Creates a new object composed of the properties that satisfy the predicate function. * * @template T - The type of object. * @param {T | null | undefined} object - The source object. * @param {ValueKeyIteratee} [predicate] - The function invoked per property. * @returns {Partial} Returns the new filtered object. * * @example * const object = { 'a': 1, 'b': '2', 'c': 3 }; * pickBy(object, (value) => typeof value === 'string'); * // => { 'b': '2' } */ declare function pickBy(object: T | null | undefined, predicate?: ValueKeyIteratee): Partial; export { pickBy };