import type { State } from '../types/State'; declare type UseTaskState = { executeTask: () => Promise; }; /** * React.js hook that immediately executes the task and provides the result states, * loading, error and a function to rerun the task. */ declare function useTask(task: Task): State & UseTaskState; export default useTask; //# sourceMappingURL=useTask.d.ts.map