/// import * as React from 'react'; export interface AffixProps { offsetTop?: number; offset?: number; offsetBottom?: number; style?: React.CSSProperties; onChange?: (affixed?: boolean) => void; /** Affix , DOM */ target?: () => Window | HTMLElement | null; prefixCls?: string; } export interface AffixState { affixStyle: React.CSSProperties | undefined; placeholderStyle: React.CSSProperties | undefined; } export default class Affix extends React.Component { static propTypes: { offsetTop: any; offsetBottom: any; target: any; }; scrollEvent: any; resizeEvent: any; timeout: any; events: string[]; eventHandlers: { [key: string]: any; }; state: AffixState; private fixedNode; setAffixStyle(e: any, affixStyle: React.CSSProperties | null): void; setPlaceholderStyle(placeholderStyle: React.CSSProperties | null): void; updatePosition(e: any): void; componentDidMount(): void; componentWillReceiveProps(nextProps: AffixProps): void; componentWillUnmount(): void; setTargetEventListeners(getTarget: () => HTMLElement | Window | null): void; clearEventListeners(): void; saveFixedNode: (node: HTMLDivElement) => void; render(): JSX.Element; }