import type { SeamActionAttemptFailedError, SeamActionAttemptTimeoutError, SeamHttpApiError, SeamHttpEndpointPaginatedQueryPaths, SeamHttpEndpoints, SeamHttpInvalidInputError, SeamPageCursor } from '@seamapi/http/connect';
import type { ActionAttempt } from '@seamapi/types/connect';
import { type UseInfiniteQueryOptions, type UseInfiniteQueryResult } from '@tanstack/react-query';
export type UseSeamInfiniteQueryParameters<T extends SeamHttpEndpointPaginatedQueryPaths> = Parameters<SeamHttpEndpoints[T]>[0];
export type UseSeamInfiniteQueryResult<T extends SeamHttpEndpointPaginatedQueryPaths> = UseInfiniteQueryResult<QueryData<T>, QueryError<T>>;
export declare function useSeamInfiniteQuery<T extends SeamHttpEndpointPaginatedQueryPaths>(endpointPath: T, parameters?: UseSeamInfiniteQueryParameters<T>, options?: Parameters<SeamHttpEndpoints[T]>[1] & QueryOptions<QueryData<T>, QueryError<T>>): UseSeamInfiniteQueryResult<T>;
interface QueryData<T extends SeamHttpEndpointPaginatedQueryPaths> {
    data: Awaited<ReturnType<SeamHttpEndpoints[T]>>;
    nextPageCursor: SeamPageCursor | null;
}
type QueryError<T extends SeamHttpEndpointPaginatedQueryPaths> = Error | SeamHttpApiError | SeamHttpInvalidInputError | (QueryData<T>['data'] extends ActionAttempt ? SeamActionAttemptFailedError<QueryData<T>['data']> | SeamActionAttemptTimeoutError<QueryData<T>['data']> : never);
type QueryOptions<X, Y> = Omit<UseInfiniteQueryOptions<X, Y>, 'queryKey' | 'queryFn' | 'initialPageParam' | 'getNextPageParam'>;
export {};
