import * as React from "react"; import { ConfigConsumerProps } from "../Config"; interface ICountdownProps { /** * 内容渲染函数,用于渲染时间展示在页面上的内容 * * **/ children: (data: { dayStr: string; hourStr: string; minuteStr: string; secondStr: string; dayNum: number; hourNum: number; minuteNum: number; secondNum: number; } | {}) => {}; /** * 需要倒计时的时间,单位为秒 * * **/ leftTime: number; /** * 倒计时结束时的回调函数 * * @default () => null **/ onEnd?: () => void; /** * 倒计时结束后展示文案 * * @default "活动结束" **/ overText?: string; /** * 组件自定义类名 * * @default "" **/ className?: string; /** * 默认前缀 * * @default 'lg' **/ prefixCls?: string; } interface ICountState { seconds: number; } declare class Countdown extends React.PureComponent { static defaultProps: { overText: string; onEnd: () => null; className: string; }; constructor(props: ICountdownProps); componentDidMount(): void; componentWillUnmount(): void; countDown(): void; renderCountdown: ({ getPrefixCls }: ConfigConsumerProps) => JSX.Element; render(): JSX.Element; } export default Countdown;