import { Component } from 'react'; import PropTypes from 'prop-types'; export interface Props { endTime: number; onEnd?: (...args: any) => any; wrapClassName: string; prefixCls: string; format: string; padding: boolean; daysPadding: boolean; } declare class Countdown extends Component { static propTypes: { endTime: PropTypes.Validator; onEnd: PropTypes.Requireable<(...args: any[]) => any>; prefixCls: PropTypes.Requireable; wrapClassName: PropTypes.Requireable; format: PropTypes.Requireable; padding: PropTypes.Requireable; daysPadding: PropTypes.Requireable; }; static defaultProps: { prefixCls: string; wrapClassName: string; format: string; padding: boolean; daysPadding: boolean; }; beginTime: number; interval: number; /** 计时器句柄 */ timeCounter: any; /** 计数器用于校正定时器偏差 */ count: number; constructor(props: Props); componentDidMount(): void; componentDidUpdate(prevProps: Props): void; componentWillUnmount(): void; initCounter: () => void; startCountDown: () => void; padNumber: (mark: string, num: number) => string | number; get parseTime(): { days: number; hours: number; minutes: number; seconds: number; }; get formatTime(): JSX.Element[]; render(): JSX.Element; } export default Countdown;