import { FetchState, Options, PluginReturn, Service } from './types'; export declare class Fetch { service: Service; options: Options; initState: Partial>; count: number; pluginImpls: PluginReturn[]; state: FetchState; constructor(service: Service, options: Options, initState?: Partial>); setState: (s?: Partial>) => void; runPluginHandler: (event: keyof PluginReturn, ...rest: any[]) => any; runAsync: (...params: Params) => Promise; run: (...params: Params) => void; cancel: () => void; refresh: () => void; refreshAsync: () => Promise; mutate: (data?: Data | ((oldData?: Data) => Data | undefined)) => void; }