import { DependencyList } from 'react'; import { Snapshot } from './use-snapshot'; /** * Async version of `useMemo` where the factory is supposed to return a promise. * The hook returns a snapshot of the promise as if it was an observable. * * @param factory async factory * @param deps dependencies of the async factory * @typeParam T type of the value generated by the async factory * @see [[useSnapshot]] * @category Hook */ export declare function useAsyncMemo(factory: () => Promise, deps: DependencyList): Snapshot; //# sourceMappingURL=use-async-memo.d.ts.map