import { AxiosError } from 'axios'; export interface UseApiResponse { data: T | null; loading: boolean; error: AxiosError | null; fetch: () => Promise; } export declare function useApi(url: string, options?: { method?: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH'; body?: any; headers?: Record; }): Promise<{ data: T | null; error: AxiosError | null; loading: boolean; }>;