type AsyncFn = (...args: any[]) => Promise<any>;
type AsyncReturnType<T extends (...args: any) => Promise<any>> = T extends (...args: any) => Promise<infer R> ? R : any;
export declare function useMostRecentCall<T extends AsyncFn>(asyncFn: T): (...args: Parameters<T>) => Promise<AsyncReturnType<T>>;
export {};
