import { Accessor } from 'solid-js'; import { MaybeAccessor } from '../utils/types.js'; import 'solid-js/types/reactive/signal'; /** * Reactive `Array.find` * * @see https://solidjs-use.github.io/solidjs-use/shared/useArrayFind * @param {Array} list - the array was called upon. * @param fn - a function to test each element. * * @returns the first element in the array that satisfies the provided testing function. Otherwise, undefined is returned. */ declare function useArrayFind(list: MaybeAccessor>>, fn: (element: T, index: number, array: Array>) => boolean): Accessor; export { useArrayFind };