import { default as React } from 'react';
import { BaseProps } from '../../types';

export type ToastType = 'default' | 'success' | 'error' | 'warning' | 'loading';
export interface ToastProps extends BaseProps {
    /** 显示内容 */
    message: React.ReactNode;
    /** 类型，默认 default */
    type?: ToastType;
    /** 是否可见 */
    visible?: boolean;
    /** 自动关闭时长（ms），0 表示不自动关闭，默认 2000 */
    duration?: number;
    /** 关闭回调 */
    onClose?: () => void;
}
export declare const Toast: React.FC<ToastProps>;
export declare const toast: {
    show: (message: string, options?: Partial<Omit<ToastProps, "message">>) => void;
};
//# sourceMappingURL=Toast.d.ts.map