UNPKG

react-query

Version:

Hooks for managing, caching and syncing asynchronous and remote data in React

14 lines (13 loc) 465 B
import { Subscribable } from './subscribable'; declare class OnlineManager extends Subscribable { private online?; private removeEventListener?; protected onSubscribe(): void; setEventListener(setup: (setOnline: (online?: boolean) => void) => () => void): void; setOnline(online?: boolean): void; onOnline(): void; isOnline(): boolean; private setDefaultEventListener; } export declare const onlineManager: OnlineManager; export {};