import { ReactNode } from "react"; import { EditorMode } from "../useMockedResponse"; import { ResponseTransform } from "../transformResponse"; export interface GraphqlApiProviderProps { path: string; query: { query: string; variables?: Record; }; variables?: Record; middleware?: string; cacheKey?: any; enabled?: boolean; contextName?: string; editorMode?: EditorMode; previewData?: any; children: ReactNode; refetchIfStale?: boolean; refetchOnWindowFocus?: boolean; refetchOnReconnect?: boolean; retryOnError?: boolean; alertOnError?: boolean; transformResponse?: ResponseTransform; suspense?: boolean; refreshInterval?: number; onLoad?(data: any): void; onError?(error: Error): Promise; } export declare function GraphqlApiProvider(props: GraphqlApiProviderProps): import("react").JSX.Element;