import { State, FetchedState } from '../types/state.js'; import { Core, MissingFetcherError, CooldownError } from '../core/core.js'; import { Optional } from '@hazae41/option'; import { FetcherlessQuerySettings, FetcherfulQuerySettings } from '../types/settings.js'; import { Result } from '@hazae41/result'; import { Data } from '../result/data.js'; import { Fail } from '../result/fail.js'; import { FetchError } from '../types/fetcher.js'; import { Mutator } from '../types/mutator.js'; import { Updater } from '../types/updater.js'; type SimpleQueryInstance = SimpleFetcherfulQueryInstance | SimpleFetcherlessQueryInstance; declare class SimpleFetcherlessQueryInstance { readonly core: Core; readonly cacheKey: string; readonly settings: FetcherlessQuerySettings; private constructor(); static make(core: Core, cacheKey: string, qsettings: FetcherlessQuerySettings): Promise>; get state(): State; get aborter(): Optional; get current(): Data | Fail | undefined; get data(): Data | undefined; get error(): Fail | undefined; get real(): FetchedState | undefined; get fake(): FetchedState | undefined; mutate(mutator: Mutator): Promise>; delete(): Promise>; fetch(aborter?: AbortController): Promise>; refetch(aborter?: AbortController): Promise>; update(updater: Updater, aborter?: AbortController): Promise>; } declare class SimpleFetcherfulQueryInstance { readonly core: Core; readonly cacheKey: string; readonly settings: FetcherfulQuerySettings; private constructor(); static make(core: Core, cacheKey: string, qsettings: FetcherfulQuerySettings): Promise>; get state(): State; get aborter(): Optional; get current(): Data | Fail | undefined; get data(): Data | undefined; get error(): Fail | undefined; get real(): FetchedState | undefined; get fake(): FetchedState | undefined; mutate(mutator: Mutator): Promise>; delete(): Promise>; fetch(aborter?: AbortController): Promise, FetchError>, CooldownError>>; refetch(aborter?: AbortController): Promise, FetchError>, never>>; update(updater: Updater, aborter?: AbortController): Promise, FetchError>, never>>; } export { SimpleFetcherfulQueryInstance, SimpleFetcherlessQueryInstance, type SimpleQueryInstance };