import { FC, ReactNode } from "react"; export declare type DirectionType = "top" | "lt" | "lb" | "rt" | "rb"; export interface MessageProps { /**标题内容 */ title?: string; /**容器 */ container?: Element | null; /**类型 */ type?: "primary" | "default" | "danger" | "secondary" | "success" | "info" | "light" | "warning" | "dark"; /** 位于container的方向 */ directions?: "top" | "lt" | "lb" | "rt" | "rb"; /** 自动关闭延迟 */ autoclosedelay?: number; /** 图标 */ icon?: ReactNode; /** 额外类名 */ className?: string; /**参考alert */ closeCallback?: () => void; /** 文本内容*/ description?: string; /** 关闭按钮 */ close?: boolean; /** 动画时间 */ timeout?: number; } export declare const Message: FC; interface DefaultOptionsType { directions?: DirectionType; description?: string | undefined; icon?: ReactNode; autoclosedelay?: number; close?: boolean; } declare const message: { default: (str: string, options?: DefaultOptionsType) => void; primary: (str: string, options?: DefaultOptionsType) => void; danger: (str: string, options?: DefaultOptionsType) => void; warning: (str: string, options?: DefaultOptionsType) => void; info: (str: string, options?: DefaultOptionsType) => void; secondary: (str: string, options?: DefaultOptionsType) => void; success: (str: string, options?: DefaultOptionsType) => void; light: (str: string, options?: DefaultOptionsType) => void; dark: (str: string, options?: DefaultOptionsType) => void; }; export default Message; export { message };