///
import * as React from 'react';
import { Component } from 'react';
export interface ScrollNumberProps {
prefixCls?: string;
className?: string;
count?: string | number;
component?: string;
onAnimated?: Function;
style?: React.CSSProperties;
title?: string | number;
}
export interface ScrollNumberState {
animateStarted?: boolean;
count?: string | number;
}
export default class ScrollNumber extends Component {
static defaultProps: {
prefixCls: string;
count: null;
onAnimated(): void;
};
lastCount: any;
constructor(props: ScrollNumberProps);
getPositionByNum(num: number, i: number): number;
componentWillReceiveProps(nextProps: ScrollNumberProps): void;
renderNumberList(position: number): React.ReactElement React.ReactElement React.Component)> | null) | (new (props: any) => React.Component)>[];
renderCurrentNumber(num: number, i: number): React.ReactElement<{
className: string;
style: {
transition: string | boolean;
msTransform: string;
WebkitTransform: string;
transform: string;
};
key: number;
}, string | ((props: any) => React.ReactElement React.Component)> | null) | (new (props: any) => React.Component)>;
renderNumberElement(): string | number | React.ReactElement<{
className: string;
style: {
transition: string | boolean;
msTransform: string;
WebkitTransform: string;
transform: string;
};
key: number;
}, string | ((props: any) => React.ReactElement React.Component)> | null) | (new (props: any) => React.Component)>[] | undefined;
render(): React.ComponentElement>;
}