import React, { FunctionComponent } from 'react'; import { BasicComponent } from '../../utils/typings'; export type ToastPositionType = 'top' | 'bottom' | 'center'; export type ToastSize = 'small' | 'base' | 'large'; export type ToastWordBreakType = 'normal' | 'break-all' | 'break-word'; export interface ToastProps extends BasicComponent { id?: string; maskClassName?: string; contentClassName?: string; contentStyle?: React.CSSProperties; icon: string | React.ReactNode; iconSize: string; msg: string | React.ReactNode; duration: number; position?: ToastPositionType; type: string; title: string; closeOnOverlayClick: boolean; lockScroll: boolean; size: ToastSize; visible: boolean; wordBreak?: ToastWordBreakType; onClose: () => void; } export declare const Toast: FunctionComponent & React.HTMLAttributes> & { show: typeof show; hide: typeof hide; }; export interface ToastOptions extends Partial> { } export declare function show(selector: string, options: ToastOptions): void; export declare function hide(selector: string): void;