import * as i0 from '@angular/core'; import { AfterViewInit, OnDestroy } from '@angular/core'; import * as i1 from '@angular/common'; import * as i2 from '@angular/cdk/platform'; import { SimpleRect } from 'ngx-tethys/util'; /** * 固钉组件 * @name thy-affix * @order 10 */ declare class ThyAffix implements AfterViewInit, OnDestroy { private scrollService; private ngZone; private platform; private renderer; private readonly fixedElement; /** * 设置 thy-affix 需要监听其滚动事件的元素,值为一个返回对应 DOM 元素的函数 * @default window * @type string | Element | Window */ readonly thyContainer: i0.InputSignal; /** * 距离窗口顶部缓冲的偏移量阈值 */ readonly thyOffsetTop: i0.InputSignalWithTransform; /** * 距离窗口底部缓冲的偏移量阈值 */ readonly thyOffsetBottom: i0.InputSignalWithTransform; /** * 固定状态改变时触发的回调函数 */ readonly thyChange: i0.OutputEmitterRef; private readonly placeholderNode; private affixStyle?; private placeholderStyle?; private positionChangeSubscription; private offsetChanged$; private destroy$; private timeout?; private document; private readonly container; constructor(); ngAfterViewInit(): void; ngOnDestroy(): void; private registerListeners; private removeListeners; getOffset(element: Element, target: Element | Window | undefined): SimpleRect; private setAffixStyle; private setPlaceholderStyle; private syncPlaceholderStyle; updatePosition(e: Event): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class ThyAffixModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { ThyAffix, ThyAffixModule };