import { Result } from '@hazae41/result'; import { Core } from '../core/core.js'; import { FetchError } from '../types/fetcher.js'; import { QuerySettings, FetcherfulQuerySettings } from '../types/settings.js'; import { State } from '../types/state.js'; import { Updater } from '../types/updater.js'; declare namespace Simple { function getCacheKey(key: K, settings: QuerySettings): string; function fetch(core: Core, cacheKey: string, aborter: AbortController, settings: FetcherfulQuerySettings): Promise, FetchError>>; /** * Optimistic update * @param core * @param key * @param cacheKey * @param fetcher * @param updater * @param settings * @returns */ function update(core: Core, cacheKey: string, updater: Updater, aborter: AbortController, settings: FetcherfulQuerySettings): Promise, FetchError>>; } export { Simple };