import { GQlessClient, GQlessError, RetryOptions } from 'gqless'; import { ReactClientOptionsWithDefaults } from '../utils'; interface UseRefetchReducerState { isLoading: boolean; error?: GQlessError; } export interface UseRefetchState extends UseRefetchReducerState { startWatching: () => void; stopWatching: () => void; } export interface UseRefetchOptions { notifyOnNetworkStatusChange?: boolean; startWatching?: boolean; retry?: RetryOptions; } export interface UseRefetch { (refetchOptions?: UseRefetchOptions): ((refetchArg?: T | (() => T)) => Promise) & UseRefetchState; } export declare function createUseRefetch(client: GQlessClient, { defaults: { retry: defaultRetry } }: ReactClientOptionsWithDefaults): UseRefetch; export {};