import { Accessor } from 'solid-js'; import { MaybeAccessor } from '../utils/types.js'; import 'solid-js/types/reactive/signal'; type Reactified = T extends (...args: infer A) => infer R ? (...args: { [K in keyof A]: MaybeAccessor; }) => Accessor : never; /** * Converts plain function into a reactive function. * The converted function accepts Signals as it's arguments * and returns a ComputedRef, with proper typing. * * @see https://solidjs-use.github.io/solidjs-use/shared/reactify * @param fn - Source function */ declare function reactify(fn: T): Reactified; export { Reactified, reactify as createReactiveFn, reactify };