import { type EmptyToVoid, type InferRouteError, type InferRouteOptions, type InferRouteOutput, type ParsedPathAndMethod } from '@aydee-app/eden'; import { type DefinedUseQueryResult, type InitialDataFunction, QueryClient, type QueryKey, type QueryObserverOptions, type SkipToken, type UseBaseQueryOptions, type UseQueryOptions, type UseQueryResult } from '@tanstack/react-query'; import type { RouteSchema } from 'elysia'; import type { EdenQueryConfig } from '../../config'; import { type EdenContextState, type SSRState } from '../../context'; import type { DistributiveOmit } from '../../utils/types'; import type { EdenQueryBaseOptions } from '../internal/query-base-options'; import type { WithEdenQueryExtension } from '../internal/query-hook-extension'; export type EdenUseQueryOptions = DistributiveOmit, 'queryKey'> & EdenQueryBaseOptions; export type EdenDefinedUseQueryOptions = DistributiveOmit, 'queryKey'> & EdenQueryBaseOptions & { initialData: InitialDataFunction | TQueryOptsData; }; export type EdenUseQueryResult = WithEdenQueryExtension>; export type EdenDefinedUseQueryResult = WithEdenQueryExtension>; export interface EdenUseQuery['query'], TOutput = InferRouteOutput, TError = InferRouteError> { (input: EmptyToVoid, options: EdenDefinedUseQueryOptions): EdenDefinedUseQueryResult; (input: EmptyToVoid | SkipToken, options?: EdenUseQueryOptions): EdenUseQueryResult; } export declare function isServerQuery(ssrState: SSRState, options: EdenUseQueryOptions | undefined, defaultOpts: Partial, isInputSkipToken: boolean, queryClient: QueryClient, queryKey: QueryKey): boolean; export declare function edenUseQueryOptions(parsedPathAndMethod: ParsedPathAndMethod, context: EdenContextState, input?: InferRouteOptions | SkipToken, options?: EdenUseQueryOptions, config?: EdenQueryConfig): UseQueryOptions;