import type { Fetch, NevoProps, PromiseState } from "../types.js"; /** * Handles a single concurrent request and updates the `value` or `error` through the provided `onChange` and `onChangeError` callbacks. The callback in the returned tuple enables issuing a new request. If the callback is called with no arguments, it resets the request back to the `idle` state, aborting the prior request if it was not fulfilled. * * @deprecated Use `useAsyncProps` instead. * * @param fetch An optional request fetcher that defaults to using the standard `fetch` method. * @param props The optional `onChange` and `onChangeError` callbacks to notify about the resulting `value` or `error`, and the `name`. * @returns A tuple consisting of the current request state and a callback to issue a new request. */ export declare function useFetch(fetch?: Fetch, props?: NevoProps): [PromiseState, (request?: Q) => void];