type AsyncFn = (...args: any[]) => Promise<any>;
/**
 * wraps the given async function in a promise that does not resolve after the component has unmounted
 * @deprecated — use `useAsyncFn` from react-use instead
 */
export declare function useSafeAsyncFunction(fn: AsyncFn, deps?: any[]): AsyncFn;
export {};
