import React from 'react'; import AriaIsolate from '../../utils/aria-isolate'; export interface ToastProps extends React.HTMLAttributes { type: 'confirmation' | 'caution' | 'error' | 'action-needed' | 'info'; onDismiss: () => void; dismissText?: string; toastRef: React.Ref; focus?: boolean; show?: boolean; dismissible?: boolean; children: React.ReactNode; } interface ToastState { animationClass: string; isolator?: AriaIsolate; } /** * The cauldron toast notification component */ export default class Toast extends React.Component { static defaultProps: { dismissText: string; onDismiss: () => void; toastRef: () => void; focus: boolean; show: boolean; dismissible: boolean; }; static displayName: string; private el; constructor(props: ToastProps); componentDidMount(): void; componentDidUpdate(prevProps: ToastProps): void; componentWillUnmount(): void; render(): React.JSX.Element; dismissToast(): void; showToast(): void; } export {};