import { SimpleChanges, OnChanges, OnDestroy, OnInit } from '@angular/core';
import { PDFDocumentProxy } from 'ng2-pdf-viewer';
import { AlertController } from '@ionic/angular';
import { PinchZoomComponent, ZoomEvent } from '@mapaxe/ngx-pinch-zoom';
import { HttpClient } from '@angular/common/http';
import * as i0 from "@angular/core";
/**
 * This component is not ready yet for production
 * @beta
 */
export declare class EuimPdfViewerComponent implements OnInit, OnChanges, OnDestroy {
    private alertService;
    private http;
    url: string;
    page: number;
    pinch: PinchZoomComponent;
    zoom: number;
    loading: boolean;
    errorMessage: string;
    pdf: PDFDocumentProxy;
    eventResult?: ZoomEvent;
    protected pdfNumPages: number;
    protected data: Uint8Array;
    private showDefaultError;
    private urlChange$;
    private subscription;
    constructor(alertService: AlertController, http: HttpClient);
    ngOnInit(): void;
    ngOnChanges(changes: SimpleChanges): void;
    ngOnDestroy(): void;
    zoomChange(event: ZoomEvent): void;
    onLoaded(pdf: PDFDocumentProxy): void;
    onError(): void;
    onDownload(): void;
    onZoomIn(): void;
    onZoomOut(): void;
    onResetZoom(): void;
    nextPage(): void;
    prevPage(): void;
    /**
     * Download file from the given data and filename using Blob.
     * It generates an anchor link and clicks on it to download the file.
     * @param data
     * @param filename
     * @private
     */
    private downloadFile;
    /**
     * Fetch PDF data from the given URL and return as Uint8Array.
     * @param url
     * @private
     */
    private getPDFData;
    static ɵfac: i0.ɵɵFactoryDeclaration<EuimPdfViewerComponent, never>;
    static ɵcmp: i0.ɵɵComponentDeclaration<EuimPdfViewerComponent, "euim-pdf-viewer", never, { "url": { "alias": "url"; "required": false; }; "page": { "alias": "page"; "required": false; }; }, {}, never, never, false, never>;
}
//# sourceMappingURL=euim-pdf-viewer.component.d.ts.map