import { AxiosRequestConfig } from 'axios'; /** * Options for configuring the `useAxios` hook. */ export interface UseAxiosOptions { axiosConfig?: AxiosRequestConfig; method?: 'GET' | 'POST'; /** If true, the request will not be executed. */ skip?: boolean; } export interface UseAxiosReturn { data: T | null; error: any | null; isLoading: boolean; isValidating: boolean; } /** * A custom React hook for making Axios HTTP requests. * Now supports a `skip` option to conditionally prevent execution. */ export declare function useAxios(url: { fetchUrl: string | undefined | null; }, fetcher?: (url: string) => Promise, payload?: unknown, options?: UseAxiosOptions): UseAxiosReturn;