import { ReactNode, HTMLAttributes } from 'react';
export interface NotificationProps extends Omit, 'title' | 'content' | 'children'> {
title?: ReactNode;
content?: ReactNode;
showIcon?: boolean;
icon?: ReactNode;
duration?: number;
onClose?: () => void;
id?: string;
position?: 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight';
closable?: boolean;
closeIcon?: ReactNode;
actions?: ReactNode[];
}
export declare enum NotificationType {
'info' = 0,
'success' = 1,
'warning' = 2,
'error' = 3
}
export type ConfigNotificationProps = {
maxCount?: number;
getContainer?: () => HTMLElement;
duration?: number;
closable?: boolean;
title?: ReactNode;
};
type notificationHookFunction = (config: NotificationProps | string) => () => void;
export type NotificationHookReturnType = {
-readonly [key in Exclude]: notificationHookFunction;
};
export {};