import { Params } from './useAPI';
import { Loading, Error, Data } from '../returnTypes';
/**
 * method: 'GET' | 'POST' | 'PATCH' | 'DELETE'
 *
 * Add ?_format=hal_json or &_format=hal_json to the endpoint if it is required. Otherwise, _format=json will be added automatically.
 * @example
 * const [lazyAPI, { loading, error, data }] = useLazyAPI();
 *
 */
interface LazyAPI {
    loading: Loading;
    error: Error;
    data: Data;
}
declare type UseLazyAPI = [(params: Params) => void, LazyAPI];
export declare const useLazyAPI: () => UseLazyAPI;
export {};
