import React, { Component, ReactNode } from 'react'; import { IViewProps } from '../View'; interface IHorizontalViewProps { children?: ReactNode[]; } interface IState { children?: ReactNode[]; currentChild: number; nextChildren?: ReactNode[]; waitForTransitionEnd: boolean; } declare class HorizontalView extends Component { constructor(props: IHorizontalViewProps); static getDerivedStateFromProps({ children: nextProps }: IHorizontalViewProps, { children: previousState }: IState): { nextChildren: React.ReactNode[]; waitForTransitionEnd: boolean; currentChild: number; children?: undefined; } | { children: React.ReactNode[]; currentChild: number; nextChildren?: undefined; waitForTransitionEnd?: undefined; }; handleTransitionEnd: () => void; render(): JSX.Element; } export default HorizontalView;