///
import { Component } from 'react';
interface propTypes {
/** 倒计时时间,毫秒 */
time: number | string;
/** 文本内容 */
text: string;
/** 倒计时结束文本*/
finishText?: string;
/** 倒计时进行回调,返回剩余时间 */
onTick?: (a: number | string) => any;
/** 倒计时完成回调 */
onComplete?: Function;
}
interface stateType {
timeLeft: number;
}
interface defaultType {
time: number;
}
declare class IotCountdown extends Component {
timer: null | NodeJS.Timeout;
static defaultProps: defaultType;
constructor(props: any);
tick(): void;
componentDidMount(): void;
componentWillUnmount(): void;
render(): JSX.Element;
}
export default IotCountdown;