import React from 'react'; import { QueryCacheEntry, InteractionType, InteractionState } from './query-cache-utils'; type QueryCacheContextValue = { getCachedQuery: (componentId: string, interactionType: InteractionType, state: InteractionState) => QueryCacheEntry | null; setCachedQuery: (componentId: string, interactionType: InteractionType, state: InteractionState, entry: QueryCacheEntry) => void; invalidateComponent: (componentId: string) => void; invalidateAll: () => void; isCached: (componentId: string, interactionType: InteractionType, state: InteractionState) => boolean; }; type QueryCacheProviderProps = { children: React.ReactNode; maxCacheSize?: number; maxCacheAge?: number; }; export declare function QueryCacheProvider({ children, maxCacheSize, maxCacheAge, }: QueryCacheProviderProps): import("react/jsx-runtime").JSX.Element; export declare function useQueryCache(): QueryCacheContextValue; export declare function useInvalidateCacheOnChange(componentId: string | undefined, dependencies: unknown[]): void; export {};