UNPKG

501 BTypeScriptView Raw
1import React from 'react';
2import { QueryClient } from '../core';
3declare global {
4 interface Window {
5 ReactQueryClientContext?: React.Context<QueryClient | undefined>;
6 }
7}
8export declare const useQueryClient: () => QueryClient;
9export interface QueryClientProviderProps {
10 client: QueryClient;
11 contextSharing?: boolean;
12 children?: React.ReactNode;
13}
14export declare const QueryClientProvider: ({ client, contextSharing, children, }: QueryClientProviderProps) => JSX.Element;