import { Typography as AntdTypography } from 'antd'; import type { TooltipPropsWithTitle } from 'antd/es/tooltip'; import type { TextProps } from 'antd/es/typography/Text'; import React from 'react'; export declare const Typography: TypographyProps; interface TimeProps extends TextProps { /** * @description Set display time * @default '-' */ time: string; /** * @description Formatted display time * @default 'YYYY-MM-DD HH:mm:ss' */ format?: string; /** * @description Display relative time * @default 'true' */ relativeTime?: boolean; /** * @description Mouse above to show time * @default '{title: "YYYY-MM-DD HH:mm:ss"}' */ tooltip?: TooltipPropsWithTitle; } declare const Time: React.FC; export type TypographyProps = typeof AntdTypography & { Time: typeof Time; }; export default Typography;