import * as i0 from "@angular/core";
import { OnChanges, SimpleChanges } from "@angular/core";
import { NzConfigKey } from "ng-zorro-antd/core/config";
/**
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
 */
interface SimpleRect {
  top: number;
  left: number;
  width?: number;
  height?: number;
  bottom?: number;
}
declare function isTargetWindow(target: Element | Window): target is Window;
declare function getTargetRect(target: Element | Window): SimpleRect;
declare namespace affix_component_d_exports {
  export { NzAffixComponent };
}
export declare class NzAffixComponent implements OnChanges {
  private readonly scrollSrv;
  private readonly ngZone;
  private readonly platform;
  private readonly renderer;
  private readonly nzResizeObserver;
  private readonly dir;
  private readonly destroyRef;
  private readonly document;
  private readonly placeholderNode;
  readonly _nzModuleName: NzConfigKey;
  private fixedEl;
  nzTarget?: string | Element | Window;
  nzOffsetTop?: null | number;
  nzOffsetBottom?: null | number;
  readonly nzChange: import("@angular/core").OutputEmitterRef<boolean>;
  private affixStyle?;
  private placeholderStyle?;
  private positionChangeSubscription;
  private offsetChanged$;
  private timeout?;
  private get target();
  constructor();
  ngOnChanges(changes: SimpleChanges): 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<NzAffixComponent, never>;
  static ɵcmp: i0.ɵɵComponentDeclaration<NzAffixComponent, "nz-affix", ["nzAffix"], {
    "nzTarget": {
      "alias": "nzTarget";
      "required": false;
    };
    "nzOffsetTop": {
      "alias": "nzOffsetTop";
      "required": false;
    };
    "nzOffsetBottom": {
      "alias": "nzOffsetBottom";
      "required": false;
    };
  }, {
    "nzChange": "nzChange";
  }, never, ["*"], true, never>;
  static ngAcceptInputType_nzOffsetTop: unknown;
  static ngAcceptInputType_nzOffsetBottom: unknown;
}
export declare class NzAffixModule {
  static ɵfac: i0.ɵɵFactoryDeclaration<NzAffixModule, never>;
  static ɵmod: i0.ɵɵNgModuleDeclaration<NzAffixModule, never, [typeof NzAffixComponent], [typeof NzAffixComponent]>;
  static ɵinj: i0.ɵɵInjectorDeclaration<NzAffixModule>;
}