import type { AsyncDataRequestStatus } from '#app'; import type { Ref } from 'vue'; type AsyncHandler = (...args: any[]) => Promise | D; export interface UseAsyncHandlerResult { status: Ref; error: Ref; data: Ref; execute: (...args: unknown[]) => Promise; reset: () => void; } export declare function useAsyncHandler(handler: AsyncHandler): UseAsyncHandlerResult; export {};