import { NgZone, OnDestroy } from "@angular/core"; import { EventBus, EventDefinition } from "@nova-ui/bits"; import { RefresherSettingsService } from "./refresher-settings.service"; import { IWidgetEvent } from "../../services/widget-to-dashboard-event-proxy.service"; import { IConfigurable, IProperties } from "../../types"; import * as i0 from "@angular/core"; export interface IRefresherProperties extends IProperties { interval?: number; enabled?: boolean; overrideDefaultSettings?: boolean; eventDef?: EventDefinition; } /** * This provider emits the REFRESH event every X milliseconds */ export declare class Refresher implements OnDestroy, IConfigurable { protected readonly eventBus: EventBus; protected readonly ngZone: NgZone; protected readonly refresherSettings: RefresherSettingsService; private intervalRef?; protected enabled: boolean; protected overrideDefaultSettings: boolean; protected interval: number; protected eventDef: EventDefinition; constructor(eventBus: EventBus, ngZone: NgZone, refresherSettings: RefresherSettingsService); updateConfiguration(properties: IRefresherProperties): void; ngOnDestroy(): void; private initializeInterval; protected performAction(): void; private getInterval; private clearInterval; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }