import type { UseAsyncFnOptions, UseAsyncFnReturns } from "../use-async-fn/index.cjs"; import type { AnyFunc } from "../utils/basic.cjs"; export interface UseLoadingFnOptions>, E = any> extends UseAsyncFnOptions { } export interface UseLoadingFnReturns>, E = any> extends UseAsyncFnReturns { } /** * A React Hooks for handling loading state with ease, alias of [useAsyncFn](https://sheinsight.github.io/react-use/reference/use-async-fn). */ export declare function useLoadingFn>, E = any>(fn: T, options?: UseLoadingFnOptions): UseLoadingFnReturns;