import { ReactNode, HTMLAttributes } from 'react';
export interface MessageProps extends Omit, 'title' | 'content' | 'children'> {
content?: ReactNode;
showIcon?: boolean;
icon?: ReactNode;
duration?: number;
onClose?: () => void;
id?: string;
position?: 'top' | 'bottom';
closable?: boolean;
closeIcon?: ReactNode;
}
export declare enum MessageType {
'info' = 0,
'success' = 1,
'warning' = 2,
'error' = 3,
'loading' = 4
}
export type ConfigMessageProps = {
maxCount?: number;
getContainer?: () => HTMLElement;
duration?: number;
closable?: boolean;
};
type messageHookFunction = (config: MessageProps | string) => () => void;
export type MessageHookReturnType = {
-readonly [key in Exclude]: messageHookFunction;
};
export {};