import { ReactElement, SuspenseProps } from 'react'; import { OnErrorHandler } from '../common'; import { ReactClientOptionsWithDefaults } from '../utils'; import type { GQlessClient } from 'gqless'; export interface GraphQLHOCOptions { suspense?: boolean | { fallback: SuspenseProps['fallback']; }; staleWhileRevalidate?: boolean; onError?: OnErrorHandler; } export interface GraphQLHOC {
(component: (props: P) => ReactElement | null, options?: GraphQLHOCOptions): (props: P) => ReactElement | null;
}
export declare function createGraphqlHOC({ scheduler, eventHandler, interceptorManager }: GQlessClient