export interface AsyncState { loading: boolean; data: T | undefined; error: unknown; } export declare function useAsyncFn(fn: (...args: Args) => Promise): [(...args: Args) => Promise, AsyncState];