import { Result } from '@hazae41/result'; import { Core } from '../core/core.js'; import { FetchError } from '../types/fetcher.js'; import { QuerySettings, ScrollFetcherfulQuerySettings } from '../types/settings.js'; import { State } from '../types/state.js'; declare namespace Scroll { function getCacheKey(key: K, settings: QuerySettings): string; /** * Fetch first page and compare it to the previous first page * @param core * @param scroller * @param cacheKey * @param fetcher * @param aborter * @param settings * @returns */ function first(core: Core, cacheKey: string, aborter: AbortController, settings: ScrollFetcherfulQuerySettings): Promise, FetchError>>; /** * Scroll to the next page * @param core * @param scroller * @param cacheKey * @param fetcher * @param aborter * @param settings * @returns */ function scroll(core: Core, cacheKey: string, aborter: AbortController, settings: ScrollFetcherfulQuerySettings): Promise, FetchError>>; } export { Scroll };