import { AfterViewInit, ElementRef, OnDestroy, Renderer2 } from '@angular/core'; import { Observable } from 'rxjs'; import * as i0 from "@angular/core"; /** * This is a manager for our resize events. You can add disable * the resize handlers, and (re-)enable handlers after they have been disabled. * * OptimizedResize uses the ResizeObserver object with a fallback to the * window.resize event. * The events emitted by the 'elementResized' property run out of * Angular ngZone. */ export declare class MigResizableDirective implements AfterViewInit, OnDestroy { private renderer; private window; private migContainerNative; private resizeUnloadHandler; private containerResizeObserver; private lastContainerHeight; private lastContainerWidth; private resizeObserverEnabled; private readonly unsubscribe$; private resizingSubject; /** * Observable that emits, when element resized. * Collects multiple events into one until the next animation frame. */ elementResized: Observable; /** *Creates an instance of OptimizedResize. * @param documentRef - Reference to the angular DOCUMENT element. * @param renderer - Angular class to modify DOM (here: add / remove event handlers). * @param containerElement - elementRef of the container element */ constructor(documentRef: Document, renderer: Renderer2, containerElement: ElementRef); ngAfterViewInit(): void; ngOnDestroy(): void; /** * Enables all resize handlers, if they do not exist or were disabled. */ enable(): void; /** * Disables (but do not remove) all resize handlers. */ disable(): void; /** * Create observer for resize events of the container element to update the * image grid. When the height or width of the container changes, all resize * callbacks get called. */ private createContainerWidthResizeObserver; /** * Handle the resize event. */ private resize; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; }