import React from 'react'; import './style/index'; export interface AffixProps { offsetTop?: number; offsetBottom?: number; style?: React.CSSProperties; onChange?: (affixed?: boolean) => void; target?: () => Window | HTMLElement | null; prefixCls?: string; className?: string; children: React.ReactNode; } declare enum AffixStatus { None = 0, Prepare = 1 } export interface AffixState { affixStyle?: React.CSSProperties; placeholderStyle?: React.CSSProperties; status: AffixStatus; lastAffix: boolean; prevTarget: Window | HTMLElement | null; } declare class Affix extends React.Component { private timeout; state: AffixState; private placeholderNode; private saveFixedNode; private getTargetFunc; componentDidMount(): void; componentDidUpdate(prevProps: AffixProps): void; componentWillUnmount(): void; measure: () => void; getOffsetTop: () => number | undefined; getOffsetBottom: () => number; prepareMeasure: () => void; updatePosition: () => void; lazyUpdatePosition(): void; render(): JSX.Element; } export default Affix;