import * as React from 'react'; import type { TransitionProps } from './Transition'; import type { KeyObject } from './util/diff'; export interface TransitionListProps extends Omit, Omit, 'children'> { keys: (React.Key | { key: React.Key; [name: string]: any; })[]; component?: string | React.ComponentType | false; className?: string; /** This will always trigger after final visible changed. Even if no transition configured. */ onVisibleChanged?: (visible: boolean, info: { key: React.Key; }) => void; /** All transition leaves in the screen */ onAllRemoved?: () => void; children: (props: { visible?: boolean; className?: string; style?: React.CSSProperties; index: number; [key: string]: any; }, ref: (node: any) => void) => React.ReactElement; } export interface TransitionListState { keyEntities: KeyObject[]; } declare class TransitionList extends React.Component { static defaultProps: { component: string; }; state: TransitionListState; static getDerivedStateFromProps({ keys }: TransitionListProps, { keyEntities }: TransitionListState): { keyEntities: KeyObject[]; }; removeKey: (removeKey: React.Key) => void; render(): React.JSX.Element; } export default TransitionList;