import { type DefaultError, type QueryKey, type UseQueryOptions, type UseQueryResult } from '@tanstack/react-query'; /** Options accepted by {@link useQuery}. The hash function is supplied by the wrapper. */ type UseQueryParameters = Omit, 'queryKeyHashFn'>; /** A TanStack query result carrying the key it was built from. */ export type UseQueryReturnType = UseQueryResult & { queryKey: QueryKey; }; /** * `useQuery` with Openfort defaults: a bigint-tolerant key hash and the * `queryKey` re-attached to the result so callers can invalidate or prefetch * the exact query they are reading without rebuilding the key. * * The retry and `throwOnError` defaults are set here rather than left to the * host's `QueryClient`. `QueryClientBoundary` deliberately reuses the app's * client, and an app-level `throwOnError: true` would otherwise throw SDK query * failures during render — unmounting the modal mid-flow and breaking the * guarantee that a consumer cannot crash the render tree. */ export declare function useQuery(parameters: UseQueryParameters): UseQueryReturnType; export {};