import { default as React, ReactNode } from 'react'; export type ToastVariant = 'alert' | 'success'; export type ToastProps = { /** * className for the element */ className?: string; /** * Content of the Toast */ children?: ReactNode; /** * The title to display in the Toast */ title: ReactNode; /** * The visual style of the Toast * @default success */ variant?: ToastVariant; /** * Handler that is called when the element is closed */ onClose: () => void; /** * The action to display at the bottom of the Toast */ action?: { text: string; isLoading?: boolean; onClick: () => void; }; }; /** * The Toast component is used to give feedback to users after an action has taken place. * The toast should close after 5 seconds. */ export declare const Toast: ({ className, children, title, variant, action, onClose, ...rest }: ToastProps) => React.JSX.Element; //# sourceMappingURL=Toast.d.ts.map