/// <reference types="react" />
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<AffixProps, AffixState> {
    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;
}
