import { LitElement, PropertyValueMap } from 'lit';
import { Ref } from 'lit/directives/ref.js';
import { WeavyType } from '../contexts/weavy-context';
import { ShadowPartsController } from '../controllers/shadow-parts-controller';
import { PDFDocumentLoadingTask, PDFDocumentProxy } from 'pdfjs-dist';
import { EventBus, GenericL10n, PDFHistory, PDFLinkService, PDFViewer } from 'pdfjs-dist/web/pdf_viewer.mjs';
type pdfjsLibType = typeof import("pdfjs-dist");
type pdfjsViewerType = typeof import("pdfjs-dist/web/pdf_viewer.mjs");
/**
 * PDF Viewer component based on pdfjs examples
 *
 * @see https://github.com/mozilla/pdf.js/blob/master/examples/mobile-viewer
 * @see https://github.com/mozilla/pdf.js/blob/master/examples/components/
 */
export default class WyPdfViewer extends LitElement {
    static styles: import('lit').CSSResult[];
    protected exportParts: ShadowPartsController;
    weavy?: WeavyType;
    whenPdfjsResolve?: (value: {
        pdfjsLib: pdfjsLibType;
        pdfjsViewer: pdfjsViewerType;
    }) => void;
    whenPdfjs: Promise<{
        pdfjsLib: pdfjsLibType;
        pdfjsViewer: pdfjsViewerType;
    }>;
    pdfjsLib?: pdfjsLibType;
    pdfjsViewer?: pdfjsViewerType;
    MAX_CANVAS_PIXELS: number;
    TEXT_LAYER_MODE: number;
    MAX_IMAGE_SIZE: number;
    CMAP_URL?: URL;
    CMAP_PACKED: boolean;
    DEFAULT_SCALE_DELTA: number;
    MIN_SCALE: number;
    MAX_SCALE: number;
    DEFAULT_SCALE_VALUE: string;
    ENABLE_XFA: boolean;
    DEFAULT_WORKER_URL: string;
    DEFAULT_CMAPS_URL: string;
    WORKER_URL?: URL;
    src: string;
    pageNumberRef: Ref<HTMLInputElement>;
    totalPagesRef: Ref<HTMLSpanElement>;
    zoomLevelRef: Ref<HTMLInputElement>;
    viewerContainerRef: Ref<HTMLDivElement>;
    pdfDocument?: PDFDocumentProxy;
    l10n?: GenericL10n;
    pdfHistory?: PDFHistory;
    pdfViewer?: PDFViewer;
    pdfEventBus?: EventBus;
    pdfLinkService?: PDFLinkService;
    protected pdfLoadingTask?: PDFDocumentLoadingTask;
    protected delayedResize?: number;
    protected resizer: ResizeObserver;
    protected open(): Promise<void>;
    protected close(): Promise<void>;
    protected pdfViewError(pdfjsLib: pdfjsLibType, message: string, moreInfo: Partial<Error & {
        filename: string;
        lineNumber: number;
    }>): void;
    setPage(pageNumber: number): void;
    zoomIn(ticks?: number): void;
    zoomOut(ticks?: number): void;
    setScale(scale: number | string): void;
    updatePage(): void;
    select(e: Event): void;
    fitToPage(): void;
    fitToWidth(): void;
    updateZoom(): void;
    willUpdate(changedProperties: PropertyValueMap<this>): Promise<void>;
    update(changedProperties: PropertyValueMap<this>): void;
    updated(): Promise<void>;
    render(): import('../../node_modules/lit-html/node/lit-html.js').TemplateResult<1>;
    connectedCallback(): void;
    disconnectedCallback(): void;
}
export {};
//# sourceMappingURL=wy-pdf-viewer.d.ts.map