import { PopoverProps, BadgeProps } from 'antd'; import * as React from 'react'; export interface INotificationItemProps { /** * @description 自定义类名 * @default */ className?: string; /** * @description 自定义样式 * @default */ style?: React.CSSProperties; /** * @description 定义头像 */ avatar?: React.ReactNode; /** * @description 自定义头部 */ title?: React.ReactNode; /** * @description 自定义内容 */ content?: React.ReactNode; /** * @description 自定义底部 */ time?: React.ReactNode; /** * @description 是否可以标记为已读 */ markAsReadVisible?: boolean; /** * @description 点击已读图标的回调函数 */ onMarkAsRead?: () => void; /** * @description 点击消息的回调函数 */ onClick?: () => void; } interface IBellProps extends BadgeProps { count: number; } export interface INotificationProps { /** * @description 自定义类名 * @default */ className?: string; /** * @description 自定义样式 * @default */ style?: React.CSSProperties; /** * @description 自定义顶部 * @default */ header?: React.ReactNode; /** * @description 自定义底部 * @default */ footer?: React.ReactNode; /** * @description 消息项 * @default */ items?: React.ReactElement; /** * @description 为空时显示的文案 * @default 暂时没有收到新的消息 */ empty?: React.ReactNode; /** * @description 气泡卡片的属性 * @default */ popoverProps?: PopoverProps; /** * @description 是否禁用全部已读 * @default false */ markAllAsReadDisabled?: boolean; /** * @description 是否禁用查看全部 * @default false */ viewAllDisabled?: boolean; /** * @description 点击全部已读的回调函数 * @default */ onMarkAllAsRead?: () => void; /** * @description 点击查看全部的回调函数 * @default */ onViewAll?: () => void; /** * @description 显示隐藏的回调函数 * @default */ onVisibleChange?: (visible: boolean) => void; /** * @description 子组件 * @default */ children?: React.ReactNode; } declare function NotificationBell(props: IBellProps): JSX.Element; declare function NotificationItem(props: INotificationItemProps): JSX.Element; export declare function Notification(props: INotificationProps): JSX.Element; export declare namespace Notification { var Bell: typeof NotificationBell; var Item: typeof NotificationItem; } export {};