import { Accessor } from 'solid-js'; import { MaybeAccessor } from '../utils/types.js'; import 'solid-js/types/reactive/signal'; /** * Reactive `Array.map` * * @see https://solidjs-use.github.io/solidjs-use/shared/useArrayMap * @param {Array} list - the array was called upon. * @param fn - a function that is called for every element of the given `list`. Each time `fn` executes, the returned value is added to the new array. * * @returns {Array} a new array with each element being the result of the callback function. */ declare function useArrayMap(list: MaybeAccessor>>, fn: (element: T, index: number, array: T[]) => U): Accessor; export { useArrayMap };