import { Query, QueryKey } from "@tanstack/react-query"; /** * Custom hook to track a single query by its queryKey with live updates * Optimized to only re-render when the specific query changes */ interface QueryWithVersion { query: Query | undefined; version: number; } /** * Returns a single query instance matching the provided key and resubscribes whenever the cache * entry changes. Ideal for detail panes where live updates are required without scanning the * entire query cache. */ export declare function useGetQueryByQueryKey(queryKey?: QueryKey): Query | undefined; /** * Returns a single query instance with a version number that increments on each cache update. * Use the version as a dependency or key to ensure child components re-render when query state changes. * * This is necessary because React Query mutates the Query object in place, so React's * shallow comparison won't detect changes to nested properties like query.state.status. */ export declare function useGetQueryByQueryKeyWithVersion(queryKey?: QueryKey): QueryWithVersion; export {}; //# sourceMappingURL=useSelectedQuery.d.ts.map