import type { Iteratee, TypeOfCollection } from '../types'; import type { Collection } from '@sdkset/types'; /** * 数组推荐原生:[Array.prototype.find](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/find)。 * 返回给定集合中第一个通过`predicate`真值检测的元素值,如果没有元素通过检测则返回`undefined`。 * * @example * find({ a: 1, b: 2, c: 3, d: 4 }, (val) => val % 2 === 0) * => 2 * * @param list 给定集合 * @param predicate 谓语迭代器函数,通过 iteratee 进行转换,以简化速记语法 * @param context 上下文对象,若传递,则作为谓语迭代器函数的执行上下文 this */ export declare function find>(list: V, predicate?: I, context?: unknown): TypeOfCollection | undefined;