import * as React from 'react';
import { From } from './from';
import './with-in-view.less';
export interface TrackableProps {
    setTrackingData?: (data: any) => void;
    inView?: boolean;
    from?: From;
}
interface Options {
    trackingCallback: (data: any, props: any) => void;
}
export declare const withInViewTracker: (options: Options) => <K extends TrackableProps>(Component: React.ComponentType<K>) => {
    new (props: Readonly<K>): {
        timeoutRef: any;
        dataFromChild: any;
        state: {
            inView: boolean;
        };
        setTrackingData: (trackingData: any) => any;
        onChange: (inView: boolean) => void;
        render(): JSX.Element;
        context: any;
        setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<K>) => {} | Pick<{}, K_1>) | Pick<{}, K_1>, callback?: () => void): void;
        forceUpdate(callBack?: () => void): void;
        readonly props: Readonly<React.PropsWithChildren<K>>;
        refs: {
            [key: string]: React.ReactInstance;
        };
        componentDidMount?(): void;
        shouldComponentUpdate?(nextProps: Readonly<K>, nextState: Readonly<{}>, nextContext: any): boolean;
        componentWillUnmount?(): void;
        componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
        getSnapshotBeforeUpdate?(prevProps: Readonly<K>, prevState: Readonly<{}>): any;
        componentDidUpdate?(prevProps: Readonly<K>, prevState: Readonly<{}>, snapshot?: any): void;
        componentWillMount?(): void;
        UNSAFE_componentWillMount?(): void;
        componentWillReceiveProps?(nextProps: Readonly<K>, nextContext: any): void;
        UNSAFE_componentWillReceiveProps?(nextProps: Readonly<K>, nextContext: any): void;
        componentWillUpdate?(nextProps: Readonly<K>, nextState: Readonly<{}>, nextContext: any): void;
        UNSAFE_componentWillUpdate?(nextProps: Readonly<K>, nextState: Readonly<{}>, nextContext: any): void;
    };
    new (props: K, context?: any): {
        timeoutRef: any;
        dataFromChild: any;
        state: {
            inView: boolean;
        };
        setTrackingData: (trackingData: any) => any;
        onChange: (inView: boolean) => void;
        render(): JSX.Element;
        context: any;
        setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<K>) => {} | Pick<{}, K_1>) | Pick<{}, K_1>, callback?: () => void): void;
        forceUpdate(callBack?: () => void): void;
        readonly props: Readonly<React.PropsWithChildren<K>>;
        refs: {
            [key: string]: React.ReactInstance;
        };
        componentDidMount?(): void;
        shouldComponentUpdate?(nextProps: Readonly<K>, nextState: Readonly<{}>, nextContext: any): boolean;
        componentWillUnmount?(): void;
        componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
        getSnapshotBeforeUpdate?(prevProps: Readonly<K>, prevState: Readonly<{}>): any;
        componentDidUpdate?(prevProps: Readonly<K>, prevState: Readonly<{}>, snapshot?: any): void;
        componentWillMount?(): void;
        UNSAFE_componentWillMount?(): void;
        componentWillReceiveProps?(nextProps: Readonly<K>, nextContext: any): void;
        UNSAFE_componentWillReceiveProps?(nextProps: Readonly<K>, nextContext: any): void;
        componentWillUpdate?(nextProps: Readonly<K>, nextState: Readonly<{}>, nextContext: any): void;
        UNSAFE_componentWillUpdate?(nextProps: Readonly<K>, nextState: Readonly<{}>, nextContext: any): void;
    };
    displayName: string;
    contextType?: React.Context<any>;
};
export {};
//# sourceMappingURL=with-in-view-tracker.d.ts.map