import { Fetcher, Key, SWRConfiguration, SWRObservable, SWRWatcher, watchCallback } from './types'; export declare class Observable implements SWRObservable { private _watchers; private _keyIsFunction; private _key; private _fetcher; private _options; private _data; private _error; private _isValidating; private _lastFetchTs; private _errorRetryCounter; private _online; private _timer; private _listeners; constructor(key: Key, fetcher?: Fetcher, options?: SWRConfiguration); private get response(); private _setOptions; setFetcher(fetcher: Fetcher, override?: boolean): void; watch(fn: watchCallback): SWRWatcher; mutate(options?: SWRConfiguration): void; private _callWatchers; private _callFetcher; private _errorHandler; private _isVisible; private _visibilityListener; private _onlineListener; private _offlineListener; private _initFocus; private _initReconnect; private _clearFocus; private _clearReconnect; }