type AsyncFn = (value: T) => Promise; /** * Wraps an async function to ensure that only the latest call is resolved. * Used to prevent a faster call being overwritten by an earlier slower call. */ export declare function useLatestAsyncCall(fn: AsyncFn): AsyncFn; export declare class StaleResultError extends Error { constructor(); } export {};