export interface AsyncState { loading: boolean; result?: T; error?: Error; } /** * Minimal replacement for `react-async-hook`. Runs `fn` whenever `deps` * change and discards the result if the effect was cleaned up first, so an * unmounted or superseded call can never set state. */ export declare const useAsync: (fn: () => Promise, deps: readonly unknown[]) => AsyncState; //# sourceMappingURL=useAsync.d.ts.map