import type { SnackbarVariant } from "../contexts/SnackbarContext"; export interface AsyncRequestOptions { successMessage?: string; errorMessage?: string | ((error: any) => string); successVariant?: SnackbarVariant; errorVariant?: SnackbarVariant; onSuccess?: (data: any) => void; onError?: (error: any) => void; onFinally?: () => void; } export interface UseAsyncRequestReturn { isLoading: boolean; execute: (requestFn: () => Promise) => Promise; setLoading: (loading: boolean) => void; } export declare function useAsyncRequest(options?: AsyncRequestOptions): UseAsyncRequestReturn; //# sourceMappingURL=useAsyncRequest.d.ts.map