import { OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { EventService, NsContent } from '@sunbird-cb/utils-v2';
import * as i0 from "@angular/core";
export declare class AppTocTeachersNotesComponent implements OnInit {
    router: Router;
    eventSvc: EventService;
    content: NsContent.IContent;
    notesDisplayType: string;
    primaryCategory: typeof NsContent.EPrimaryCategory;
    downloadInProgress: {
        [key: string]: boolean;
    };
    isDownloadingAll: boolean;
    forPreview: boolean;
    constructor(router: Router, eventSvc: EventService);
    ngOnInit(): void;
    raiseDownloadAllTelemetry(subType: string): void;
    downloadPDF(contentData: any): void;
    previewContent(contentData: any): void;
    downloadAllContent(): void;
    /**
     * Check if any download is currently in progress
     */
    hasActiveDownloads(): boolean;
    /**
     * Check if content has any teacher resources
     */
    hasTeacherResources(): boolean;
    /**
     * Download file using multiple methods to ensure compatibility across browsers
     * @returns Promise that resolves when download completes or fails
     */
    private downloadFile;
    /**
     * Attempt download using XMLHttpRequest as a fallback
     */
    private downloadWithXHR;
    private getFileExtension;
    private getMimeTypeFromUrl;
    private saveBlob;
    private tryDirectDownload;
    static ɵfac: i0.ɵɵFactoryDeclaration<AppTocTeachersNotesComponent, never>;
    static ɵcmp: i0.ɵɵComponentDeclaration<AppTocTeachersNotesComponent, "ws-widget-app-toc-teachers-notes", never, { "content": { "alias": "content"; "required": false; }; "notesDisplayType": { "alias": "notesDisplayType"; "required": false; }; }, {}, never, never, false, never>;
}
//# sourceMappingURL=app-toc-teachers-notes.component.d.ts.map