import { DependencyList } from "react"; import { AsyncTaskIdentity } from "./useAsyncTasks.type"; /** * Use async tasks to execute async functions and return a list of task ids and a function to add a task * @param callback - The async function to execute * @param deps - The dependencies of the async function * @returns A tuple containing the list of task ids and a function to add a task */ declare const useAsyncTasks: (callback: C, deps: DependencyList) => readonly [string[], C]; export { useAsyncTasks };