import { GQtyError, type BaseGeneratedSchema, type GQtyClient, type RetryOptions } from 'gqty'; import { type ReactClientOptionsWithDefaults } from '../utils'; interface UseRefetchState { isLoading: boolean; error?: GQtyError; startWatching: () => void; stopWatching: () => void; } export interface UseRefetchOptions { notifyOnNetworkStatusChange?: boolean; operationName?: string; retry?: RetryOptions; startWatching?: boolean; suspense?: boolean; } export interface UseRefetch { (refetchOptions?: UseRefetchOptions): ((refetchArg?: T | ((query: TSchema['query']) => T)) => Promise) & UseRefetchState; } export declare const createUseRefetch: (client: GQtyClient, { defaults: { retry: defaultRetry } }: ReactClientOptionsWithDefaults) => UseRefetch; export {};