import type { Inputs } from "../dependencies/types"; import type { PromiseState } from "../types"; /** * A hook that returns a callback function that will execute the given async function and return its result, and the state of the promise returned by the async function. * * @param callback The async function to be executed. * @param dependencies The dependencies array for the useCallback hook. * @returns A tuple containing the async callback function and the promise state. */ export declare function useAsyncCallback Promise>(callback: C, dependencies: Inputs): [C, PromiseState>];