import React from 'react'; import { PureComponent } from '../../utils/component'; export interface StickyProps { top?: number; bottom?: number; children: React.ReactNode; target?: string | HTMLElement; className?: string; style?: React.CSSProperties; } interface StickyState { mode?: 'top' | 'bottom' | ''; placeholder?: React.CSSProperties; style?: React.CSSProperties; scrollWidth?: number; } declare class Sticky extends PureComponent { static defaultProps: { style: {}; }; element: React.RefObject; origin: React.RefObject; placeholder: React.RefObject; targetElement: HTMLDivElement; handlePosition: any; constructor(props: any); componentDidMount: () => void; render: () => JSX.Element; componentWillUnmount: () => void; setPosition: () => void; getStyle: (mode: any, offset: any, left: any, width: any) => React.CSSProperties; bindScroll: () => void; unbindScroll: () => void; } export default Sticky;