import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core'; import { FocusTrap, FocusTrapFactory } from '@angular/cdk/a11y'; import { contentErrorMessage } from '@project-sunbird/sunbird-player-sdk-v9/lib/player-utils/interfaces/errorMessage'; import { NextContent, ISideBarEvent } from '@project-sunbird/sunbird-player-sdk-v9/sunbird-player-sdk.interface'; import { SectionPlayerComponent } from '../section-player/section-player.component'; import { IAttempts, IParentConfig, ISummary, QumlPlayerConfig } from './../quml-library-interface'; import { ViewerService } from './../services/viewer-service/viewer-service'; import { TransformationService } from '../services/transformation-service/transformation.service'; import { UtilService } from './../util-service'; import { Subscription } from 'rxjs'; import * as i0 from "@angular/core"; export declare class MainPlayerComponent implements OnInit, OnChanges { viewerService: ViewerService; private utilService; private transformationService; private focusTrapFactory; playerConfig: QumlPlayerConfig; playerEvent: EventEmitter; telemetryEvent: EventEmitter; sectionPlayer: SectionPlayerComponent; isInitialized: boolean; isLoading: boolean; isSectionsAvailable: boolean; isMultiLevelSection: boolean; sections: any[]; sectionIndex: number; activeSection: any; contentError: contentErrorMessage; parentConfig: IParentConfig; showEndPage: boolean; showFeedBack: boolean; endPageReached: boolean; isEndEventRaised: boolean; isSummaryEventRaised: boolean; showReplay: boolean; attempts: IAttempts; mainProgressBar: any[]; loadScoreBoard: boolean; summary: ISummary; isDurationExpired: boolean; finalScore: number; totalNoOfQuestions: number; durationSpent: string; outcomeLabel: string; totalScore: number; initialTime: number; userName: string; jumpToQuestion: any; totalVisitedQuestion: number; nextContent: NextContent; disabledHandle: FocusTrap | null; subscription: Subscription; constructor(viewerService: ViewerService, utilService: UtilService, transformationService: TransformationService, focusTrapFactory: FocusTrapFactory); onTelemetryEvent(event: any): void; ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; initializeSections(): void; setConfig(): void; private getMultilevelSection; private hasChildren; emitMaxAttemptEvents(): void; getActiveSectionIndex(): number; onShowScoreBoard(event: any): void; onSectionEnd(event: any): void; onPlayerEvent(event: any): void; getSummaryObject(): void; updateSectionScore(activeSectionIndex: number): void; setNextSection(event: any, activeSectionIndex: number): void; prepareEnd(event: any): void; replayContent(): void; setInitialScores(activeSectionIndex?: number): void; calculateScore(): number; exitContent(event: any): void; raiseEndEvent(currentQuestionIndex: any, endPageSeen: any, score: any): void; setDurationSpent(): void; onScoreBoardLoaded(event: any): void; onScoreBoardSubmitted(): void; generateOutComeLabel(): void; goToQuestion(event: any): void; playNextContent(event: any): void; toggleScreenRotate(event?: KeyboardEvent | MouseEvent): void; sideBarEvents(event: ISideBarEvent): void; handleSideBarAccessibility(event: any): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }