import React, { ReactNode } from 'react'; import { QueryClient } from '@tanstack/react-query'; export interface QueryProviderProps { children: ReactNode; /** When true, renders the React Query DevTools panel. Defaults to false. */ showDevTools?: boolean; } /** * Sanctioned accessor for the library's TanStack `QueryClient`. * * Returns the same client `QueryProvider` (mounted by `UdpAppProvider`) supplies * via context. Use this instead of importing `useQueryClient` from * `@tanstack/react-query` directly — that package is only a transitive dependency * of consumer apps, so importing from it is a phantom dependency and only resolves * the right client by dedup luck. * * @example * const qc = useAppQueryClient(); * // after a successful mutation, refresh a useApiQuery cache entry: * qc.invalidateQueries({ queryKey: [baseURL, url, config] }); */ export declare const useAppQueryClient: () => QueryClient; export declare const QueryProvider: React.FC; //# sourceMappingURL=QueryProvider.d.ts.map