import { FetchFunc } from './FetchProvider';
/**
* useRefetch hook
*
* This returns only `refetch` part of what `useFetch` returns.
*
* @example
* import { useFetch } from 'react-hooks-fetch';
*
* const refetch = useRefetch(desc);
* refetch('1');
*/
export declare function useRefetch(fn: FetchFunc): (input: Input) => void;
export declare function useFetch(fn: FetchFunc, options: {
allowUndefined: true;
}): {
input: Input | undefined;
result: Result | undefined;
refetch: (input: Input) => void;
};
export declare function useFetch(fn: FetchFunc): {
input: Input;
result: Result;
refetch: (input: Input) => void;
};