import type { SeamActionAttemptFailedError, SeamActionAttemptTimeoutError, SeamHttpApiError, SeamHttpEndpointQueryPaths, SeamHttpEndpoints, SeamHttpInvalidInputError } from '@seamapi/http'; import type { ActionAttempt } from '@seamapi/types/connect'; import { type QueryKey, type UseQueryOptions, type UseQueryResult } from '@tanstack/react-query'; export type UseSeamQueryParameters = Parameters[0]; export type UseSeamQueryResult = UseQueryResult, QueryError>; export declare function useSeamQuery(endpointPath: T, parameters?: UseSeamQueryParameters, options?: Parameters[1] & QueryOptions, SeamHttpApiError>): UseSeamQueryResult & { queryKey: QueryKey; }; type QueryData = Awaited>; type QueryError = Error | SeamHttpApiError | SeamHttpInvalidInputError | (QueryData extends ActionAttempt ? SeamActionAttemptFailedError> | SeamActionAttemptTimeoutError> : never); type QueryOptions = Omit, 'queryKey' | 'queryFn'>; export {};