import { Accessor } from 'solid-js'; import { MaybeAccessor } from '../utils/types.js'; import 'solid-js/types/reactive/signal'; /** * Reactive `Array.findIndex` * * @see https://solidjs-use.github.io/solidjs-use/shared/useArrayFindIndex * @param {Array} list - the array was called upon. * @param fn - a function to test each element. * * @returns {number} the index of the first element in the array that passes the test. Otherwise, "-1". */ declare function useArrayFindIndex(list: MaybeAccessor>>, fn: (element: T, index: number, array: Array>) => unknown): Accessor; export { useArrayFindIndex };