/** * usePromise * @description Promise management hook for react * @see {@link https://rooks.vercel.app/docs/hooks/usePromise} */ import { DependencyList } from "react"; type AsyncFunction = () => Promise; type PromiseState = { data: T | null; loading: boolean; error: Error | null; }; declare function usePromise(asyncFunction: AsyncFunction, deps?: DependencyList): PromiseState; export { usePromise };