export declare type PromiseType
> = P extends Promise ? T : never; export declare type FunctionReturningPromise = (...args: any[]) => Promise; export default function useAsync(fn: T): any;