import { OnInit, OnDestroy } from '@angular/core';
import { MatDialogRef } from '@angular/material/dialog';
import { MatLegacyDialog } from '@angular/material/legacy-dialog';
import { MatLegacySnackBar } from '@angular/material/legacy-snack-bar';
import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
import { Router } from '@angular/router';
import { ConfigurationsService } from '@sunbird-cb/utils-v2';
import { AppTocService } from '../../../../services/app-toc.service';
import * as i0 from "@angular/core";
export declare class AssignmentViewerV2Component implements OnInit, OnDestroy {
    router: Router;
    tocSvc: AppTocService;
    configSvc: ConfigurationsService;
    private sanitizer;
    dialogRef: MatDialogRef<AssignmentViewerV2Component>;
    data: any;
    private dialogLegacy;
    private snackBar;
    safeSrc: SafeResourceUrl | null;
    fileBlob: Blob | null;
    fileUrl: string;
    fileType: string;
    fileName: string;
    isLoading: boolean;
    error: boolean;
    errorMessage: string;
    showPdfViewer: boolean;
    showDownloadOption: boolean;
    documentNotSupported: boolean;
    constructor(router: Router, tocSvc: AppTocService, configSvc: ConfigurationsService, sanitizer: DomSanitizer, dialogRef: MatDialogRef<AssignmentViewerV2Component>, data: any, dialogLegacy: MatLegacyDialog, snackBar: MatLegacySnackBar);
    ngOnInit(): void;
    readFile(): void;
    handleSubmitAssignment(): void;
    submitAssignment(): void;
    notifyAssignmentSubmission(): Promise<void>;
    private processFileData;
    private createFileUrl;
    private setupViewer;
    private setupPdfViewer;
    private getFileType;
    private getMimeType;
    private handleError;
    downloadFile(): void;
    onIframeLoad(): void;
    onIframeError(): void;
    handleClose(): void;
    openSnackbar(primaryMsg: string, duration?: number): void;
    submitAssignmentAsDraft(): void;
    closeDialog(): void;
    retryLoad(): void;
    ngOnDestroy(): void;
    static ɵfac: i0.ɵɵFactoryDeclaration<AssignmentViewerV2Component, never>;
    static ɵcmp: i0.ɵɵComponentDeclaration<AssignmentViewerV2Component, "ws-widget-app-assignment-viewerV2", never, {}, {}, never, never, false, never>;
}
//# sourceMappingURL=app-toc-assignment-viewerV2.component.d.ts.map