// Type definitions for react-sticky 6.0
// Project: https://github.com/captivationsoftware/react-sticky
// Definitions by: Matej Lednicky ,
// Curtis Warren ,
// Andrew Hyndman
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
import * as React from "react";
export const StickyContainer: React.ComponentClass<
React.HTMLAttributes
>;
export interface StickyChildArgs {
style: React.CSSProperties;
isSticky: boolean;
wasSticky: boolean;
distanceFromTop: number;
distanceFromBottom: number;
calculatedHeight: number;
}
export interface StickyProps {
children: (args: StickyChildArgs) => React.ReactElement;
relative?: boolean;
isActive?: boolean;
className?: string;
style?: any;
stickyClassName?: string;
stickyStyle?: any;
topOffset?: number;
bottomOffset?: number;
onStickyStateChange?(isSticky: boolean): void;
disableCompensation?: boolean;
disableHardwareAcceleration?: boolean;
}
export const Sticky: React.ComponentClass;