import { DefaultError, InfiniteData, QueryKey, DataTag } from '@tanstack/query-core'; import { UseInfiniteQueryOptions } from './types.cjs'; type UndefinedInitialDataInfiniteOptions, TQueryKey extends QueryKey = QueryKey, TPageParam = unknown> = UseInfiniteQueryOptions & { initialData?: undefined; }; type NonUndefinedGuard = T extends undefined ? never : T; type DefinedInitialDataInfiniteOptions, TQueryKey extends QueryKey = QueryKey, TPageParam = unknown> = UseInfiniteQueryOptions & { initialData: NonUndefinedGuard> | (() => NonUndefinedGuard>); }; declare function infiniteQueryOptions, TQueryKey extends QueryKey = QueryKey, TPageParam = unknown>(options: DefinedInitialDataInfiniteOptions): DefinedInitialDataInfiniteOptions & { queryKey: DataTag>; }; declare function infiniteQueryOptions, TQueryKey extends QueryKey = QueryKey, TPageParam = unknown>(options: UndefinedInitialDataInfiniteOptions): UndefinedInitialDataInfiniteOptions & { queryKey: DataTag>; }; export { type DefinedInitialDataInfiniteOptions, type UndefinedInitialDataInfiniteOptions, infiniteQueryOptions };