import type { UseQueryOptions } from '@tanstack/react-query'; import type { DeepReadonly } from './DeepReadonly.js'; import type { ServiceOperationQueryKey } from './ServiceOperationKey.js'; export type UseQueryOptionsForUseSuspenseQuery< TSchema extends { url: string; method: string }, TParams, TQueryFnData, TError, TData = TQueryFnData, > = Omit< UseQueryOptions< TQueryFnData, TError, TData, ServiceOperationQueryKey >, 'enabled' | 'throwOnError' | 'placeholderData' | 'queryKey' > & ( | { parameters: DeepReadonly; queryKey?: never; } | { queryKey: ServiceOperationQueryKey; parameters?: never; } );