import { StandardProps } from "../@types/common"; import { Dayjs } from 'dayjs'; import React from 'react'; import './styles/index.less'; export type ITimeTextValidDate = string | number | Date | Dayjs | null | undefined; export type ITimeTextValidTimeRule = { diff: number | number[]; format: (diff: number) => string; }; export interface ITimeTextProps extends StandardProps { time?: ITimeTextValidDate; baseTime?: ITimeTextValidDate; fallBack?: React.ReactNode | (() => React.ReactNode); timeRule?: ITimeTextValidTimeRule[] | ((defaultRules: ITimeTextValidTimeRule[], diff: number) => ITimeTextValidTimeRule[]); mode?: 'default' | 'showDay' | 'showMin' | 'showSecond'; } declare const TimeText: React.FC; export default TimeText;