import scrollIntoViewIfNeeded, { Options } from 'scroll-into-view-if-needed'; import { ElementRef, NgZone } from '@angular/core'; import * as i0 from "@angular/core"; type Boundary = 'parent' | Element; /** * A directive that scrolls an element into view. * Depends On: [scroll-into-view-if-needed](https://www.npmjs.com/package/scroll-into-view-if-needed) * * The browser APIs available for scrolling to an element are very primitive, scrolls on the parents as well as the child. * This behavior results in weird jumps in certain scenarios, using `scroll-into-view-if-needed` helps avoid this issue. * * `scroll-into-view-if-needed` allows us to better control the scroll `boundary` and much more. * * @export */ export declare class UiScrollIntoViewDirective { private _element; private _zone; /** * The boundary of the `scroll` effect. * */ boundary: Boundary; block: Options['block']; /** * Configures if the decorated element should be scrolled into view. * eg: `[uiScrollIntoView]="isFocused"` * */ set uiScrollIntoView(condition: boolean); /** * Method that scrolls to the the provided `target`. * */ scrollIntoViewIfNeeded: typeof scrollIntoViewIfNeeded; /** * @ignore */ constructor(_element: ElementRef, _zone: NgZone); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } export {};