import { BasicComponent } from '../../utils/typings'; import * as React from 'react'; export type ToastPosition = 'top' | 'bottom' | 'center'; export type ToastIcon = 'success' | 'fail' | 'loading' | 'warn' | React.ReactNode; export type ToastWordBreak = 'normal' | 'break-all' | 'break-word'; export interface ToastProps extends BasicComponent { id?: string; duration?: number; position?: ToastPosition; title?: string; closeOnOverlayClick?: boolean; lockScroll?: boolean; size?: string | number; icon?: ToastIcon; content?: React.ReactNode; onClose?: () => void; contentClassName?: string; contentStyle?: React.CSSProperties; wordBreak?: ToastWordBreak; } declare function show(option: ToastProps | string): void; declare function config(config: ToastProps): void; declare const _default: { show: typeof show; config: typeof config; clear(): void; }; export default _default;