import type { ArgsOrVoidOrSkip, IResource, TInfiniteResourceState } from "../../query/types/index.js"; /** * Infinite loading over a projection resource: an ordered feed of *pages*, each * page an ordinary cache entry (id-set) of the projection resource. Loaded pages * never re-render on tail growth (their entries are untouched), items shared * between pages are deduplicated by the projection item cache, and item updates * (e.g. an overlapping set's refresh) propagate into every live page through * the batch's stream projections. * * The id-sets of the next pages come from the caller (typically from a * separate paginator query) via `fetchNext(nextArgs)` — the hook does not * know whether more pages exist. * * Changing `initialArgs` (by cache key) resets the feed to its new first page. */ export declare function useInfiniteResource(resource: IResource, initialArgs: ArgsOrVoidOrSkip): TInfiniteResourceState;