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 dependencies - The dependencies of the async function * @returns A tuple containing the loading state and a function to call the async function */ declare const useAsyncEffect: (callback: () => Promise void)>, dependencies?: DependencyList) => void; export { useAsyncEffect };