import React, { Component } from 'react'; export interface CountDownProps { endTime?: number; nowTime?: number; prefixCls?: string; style?: React.CSSProperties; daysStyle?: React.CSSProperties; hourStyle?: React.CSSProperties; minuteStyle?: React.CSSProperties; secondStyle?: React.CSSProperties; pointStyle?: React.CSSProperties; showDay?: boolean; timeEnd?: any; reloadCart?: Function; } /** * @class CountDown 倒计时 */ export default class CountDown extends Component { static defaultProps: { prefixCls: string; showDay: boolean; }; state: { day: number; hour: number; minute: number; second: number; timer1: null; timer2: null; }; componentDidMount: () => void; componentWillReceiveProps(nextProps: any): void; componentWillUnmount: () => void; clear: () => void; startCounter: () => void; render: () => JSX.Element; }