import { Accessor } from 'solid-js'; import { MaybeAccessor } from '../utils/types.js'; import 'solid-js/types/reactive/signal'; interface UseToNumberOptions { /** * Method to use to convert the value to a number. * * @default 'parseFloat' */ method?: 'parseFloat' | 'parseInt'; /** * The base in mathematical numeral systems passed to `parseInt`. * Only works with `method: 'parseInt'` */ radix?: number; /** * Replace NaN with zero * * @default false */ nanToZero?: boolean; } /** * Computed reactive object. * * @see https://solidjs-use.github.io/solidjs-use/shared/useToNumber */ declare function useToNumber(value: MaybeAccessor, options?: UseToNumberOptions): Accessor; export { UseToNumberOptions, useToNumber };