import type { IotaClient } from '@iota/iota-sdk/client'; import type { InfiniteData, UseInfiniteQueryOptions, UseInfiniteQueryResult } from '@tanstack/react-query'; import type { PartialBy } from '../types/utilityTypes.js'; interface PaginatedResult { data?: unknown; nextCursor?: unknown; hasNextPage: boolean; } export type IotaRpcPaginatedMethodName = { [K in keyof IotaClient]: IotaClient[K] extends (input: any) => Promise ? K : never; }[keyof IotaClient]; export type IotaRpcPaginatedMethods = { [K in IotaRpcPaginatedMethodName]: IotaClient[K] extends (input: infer Params) => Promise ? { name: K; result: Result; params: Params; cursor: Cursor; } : never; }; export type UseIotaClientInfiniteQueryOptions = PartialBy, 'queryFn' | 'initialPageParam' | 'getNextPageParam'>, 'queryKey'>; export declare function useIotaClientInfiniteQuery>(method: T, params: IotaRpcPaginatedMethods[T]['params'], { queryKey, enabled, ...options }?: UseIotaClientInfiniteQueryOptions): UseInfiniteQueryResult; export {}; //# sourceMappingURL=useIotaClientInfiniteQuery.d.ts.map