UNPKG

ng-gpt

Version:
25 lines (24 loc) 970 B
import { EventEmitter, Injector } from '@angular/core'; import { GptConfig } from '../gpt.config'; import { ParseDurationService } from '.'; import * as i0 from "@angular/core"; export declare class GptRefreshService { private config; private inject; private parseDuration; refreshEvent: EventEmitter<any>; private refreshSlots; private singleRequest; private intervals; constructor(config: GptConfig, inject: Injector, parseDuration: ParseDurationService); slotRefresh(slot: any, refreshInterval?: number | string, initRefresh?: boolean): Promise<any>; cancelInterval(slot: any): this; private hasSlotInterval; private refresh; private addSlotInterval; private slotIntervalKey; private validateInterval; hiddenCheck(element: any): any; static ɵfac: i0.ɵɵFactoryDeclaration<GptRefreshService, [{ optional: true; }, null, null]>; static ɵprov: i0.ɵɵInjectableDeclaration<GptRefreshService>; }