import type { ProgressPromise } from '@prezly/progress-promise'; import type { AsyncProgressState } from './useAsyncProgressFn'; /** * ProgressPromise variant of react-use's useAsync() * React hook that resolves a function that returns a progress promise (or a regular promise). * @see https://streamich.github.io/react-use/?path=/story/side-effects-useasync--docs */ export declare function useAsyncProgress(fn: () => PromiseLike | ProgressPromise | T, initialState?: AsyncProgressState): AsyncProgressState;