import { AxiosInstance, AxiosResponse, Method } from "axios"; interface UseApiProps { BASE_URL?: string | null; DEFAULT_HEADERS?: Record; apiMap?: Record ApiConfig>; createRequestInstance?: (baseURL?: string | null, defaultHeaders?: Record) => AxiosInstance; sendRequest?: (requestInstance: AxiosInstance, method: string, url: string, data?: any, headers?: Record) => Promise; } interface ApiConfig { url: string; method: Method; headers?: Record; data?: any; } interface FetchOptions { needLoading?: boolean; } interface UseApiReturn { data: T | null; error: Error | null; loading: boolean; lastRequest: string | null; fetchData: (url: string, method: string, data?: any, headers?: Record, options?: FetchOptions) => Promise; fetchApi: (apiKey: string, data?: any, needLoading?: boolean) => Promise; } export declare const useApi: (props?: UseApiProps) => UseApiReturn; export {}; //# sourceMappingURL=useApi.d.ts.map