import * as i0 from '@angular/core'; import { OnInit, OnDestroy, InjectionToken, AfterViewInit, ElementRef } from '@angular/core'; import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser'; import { LuxFormFileBase, ILuxFileObject } from '@ihk-gfi/lux-components'; import { OverlayRef } from '@angular/cdk/overlay'; import { Subscription } from 'rxjs'; interface LuxFilePreviewData { fileComponent?: LuxFormFileBase; fileObject?: ILuxFileObject; } declare class LuxFilePreviewRef { private overlayRef; private activeElement; constructor(overlayRef: OverlayRef, activeElement?: HTMLElement | null); close(): void; } declare class LuxFilePreviewBase implements OnInit, OnDestroy { protected previewRef: LuxFilePreviewRef; protected previewData: LuxFilePreviewData; protected sanitizer: DomSanitizer; url?: SafeResourceUrl; urls: SafeResourceUrl[]; paddingWith: number; paddingHeight: number; height: number; width: number; startPhase: boolean; startDurationMs: number; loading: boolean; loadingTimer: any; downloadIconName: string; downloadTagId: string; closeIconName: string; closeTagId: string; handleKeydown(keyboardEvent: KeyboardEvent): void; windowResize(): void; ngOnInit(): void; ngOnDestroy(): void; onDownload(): void; onClose(): void; loadingFinished(): void; clearFocus(): void; updateWidthAndHeight(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare const LUX_FILE_PREVIEW_DATA: InjectionToken; interface LuxFilePreviewConfig { panelClass?: string; hasBackdrop?: boolean; backdropClass?: string; previewData: LuxFilePreviewData; } declare class LuxFilePreviewImgViewerComponent extends LuxFilePreviewBase implements OnInit, AfterViewInit { private elementRef; previewImg?: ElementRef; zoomActive: boolean; zoomWidth: number; zoomStep: number; ngAfterViewInit(): void; onLoad(): void; onZoomIn(): void; onZoomOut(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class LuxFilePreviewNotSupportedViewerComponent extends LuxFilePreviewBase implements OnInit { counter: number; timer: any; onDownload(): void; onClose(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class LuxFilePreviewPdfViewerComponent extends LuxFilePreviewBase implements AfterViewInit { private elementRef; ngAfterViewInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class LuxFilePreviewToolbarComponent implements OnDestroy { private mediaQueryService; data: LuxFilePreviewData; mobileView: boolean; subscription: Subscription; constructor(); ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class LuxFilePreviewComponent implements OnInit { data: LuxFilePreviewData; pdfViewer?: LuxFilePreviewPdfViewerComponent; imgViewer?: LuxFilePreviewImgViewerComponent; notSupportedViewer?: LuxFilePreviewNotSupportedViewerComponent; fileType: 'img' | 'pdf' | 'txt' | 'notsupported'; ngOnInit(): void; onClose(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare const DEFAULT_FILE_PREVIEW_CONFIG: LuxFilePreviewConfig; declare class LuxFilePreviewService { private injector; private overlay; open(config: LuxFilePreviewConfig): LuxFilePreviewRef; private attachDialogContainer; private createOverlay; private createInjector; private getOverlayConfig; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } export { DEFAULT_FILE_PREVIEW_CONFIG, LUX_FILE_PREVIEW_DATA, LuxFilePreviewBase, LuxFilePreviewComponent, LuxFilePreviewImgViewerComponent, LuxFilePreviewNotSupportedViewerComponent, LuxFilePreviewPdfViewerComponent, LuxFilePreviewRef, LuxFilePreviewService, LuxFilePreviewToolbarComponent }; export type { LuxFilePreviewConfig, LuxFilePreviewData };