import { DefaultError, QueryKey, InitialDataFunction, DataTag } from '@tanstack/query-core'; import { UseQueryOptions } from './types.js'; type UndefinedInitialDataOptions = UseQueryOptions & { initialData?: undefined | InitialDataFunction>; }; type NonUndefinedGuard = T extends undefined ? never : T; type DefinedInitialDataOptions = UseQueryOptions & { initialData: NonUndefinedGuard | (() => NonUndefinedGuard); }; declare function queryOptions(options: DefinedInitialDataOptions): DefinedInitialDataOptions & { queryKey: DataTag; }; declare function queryOptions(options: UndefinedInitialDataOptions): UndefinedInitialDataOptions & { queryKey: DataTag; }; export { type DefinedInitialDataOptions, type UndefinedInitialDataOptions, queryOptions };