import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core'; import { MatDialog } from '@angular/material/dialog'; import { AuthenticationService, LoggerService, EwCommonService } from 'ew-common-lib'; import { EwMaReplayService } from '../../../ew-ma-replay.service'; import { EwTranslateService } from '../../../services/ew-translate.service'; export interface IOffersListComponentState { count?: number; list?: any[]; isLoading?: boolean; } export declare class OffersListComponent implements OnInit, OnChanges { dialog: MatDialog; private replayService; private ewloggerService; private authenticationService; private ewCommonService; private ewTranslateService; /** * @description * user domain value to use in API */ private userDomain; /** * @description * List Loader */ listLoader: boolean; /** * @description * Offers array */ offers: any[]; /** * @description * Offers array */ eventDetails: any; /** * @description * Offer type */ eventType: number; showlist: boolean; isreplay: boolean; add_offers: any; updated: any; state: EventEmitter; private translationValues; /** * @param dialog: MatDialog * @param offerService: EwMaOffersAppLibService * @param authenticationService Get user domain * @description * constructor to inilizae the variables */ constructor(dialog: MatDialog, replayService: EwMaReplayService, ewloggerService: LoggerService, authenticationService: AuthenticationService, ewCommonService: EwCommonService, ewTranslateService: EwTranslateService); /** * @description * NG INIT */ ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; private loadTranslatedValues; /** * @description * Fetch offers listing from API */ confirmDelete(offer_id: string): void; /** * @description * Delete offers from API */ deleteOffer(offer_id: string): void; /** * @description * Fetch offers listing from API */ getList(): void; addOffers(data?: any): void; }