type Method = "get" | "post" | "put" | "patch" | "delete";
interface ApiOptions {
    method?: Method;
    lazy?: boolean;
    params?: Record<string, any>;
    headers?: Record<string, string>;
    body?: any;
}
export declare const useApi: <T = any>(url: string, options?: ApiOptions) => {
    data: T | null;
    loading: boolean;
    error: any;
    execute: (overrideBody?: any) => Promise<T>;
};
export {};
