import { DependencyList } from "react"; /** * Execute an async function and return a loading state and a function to call the async function * @param callback - The async function to execute * @param deps - The dependencies of the async function * @returns A tuple containing the loading state and a function to call the async function */ declare const useAsyncTask: (callback: (...args: A) => Promise, deps: DependencyList) => readonly [boolean, (...args: A) => void]; export { useAsyncTask };