import { ReactElement, ReactNode } from 'react'; export interface ToastProps { content: ReactNode; active: boolean; onExit: () => void; action?: { text: ReactNode; callback: () => void; }; duration?: number; closeButton?: boolean; themeControlWrapper?: string; themeControl?: string; themeItem?: string; } declare function Toast({ content, active, onExit, duration, action, closeButton, themeControlWrapper, themeControl, themeItem }: ToastProps): ReactElement; declare namespace Toast { var propTypes: { /** * The toast content. This can either be a string, valid JSX, or a function * returning either. Content text will truncate. */ content: any; /** * A function called when popover is dismissed. You need to use this callback * to remove the Toast from the rendered page. */ onExit: any; /** * Triggers the active state of the toast. When true, the toast appears. */ active: any; /** * The primary action for the toast. * * The value is an object with the following properties: * - `text`: **(required)** The text of the button. * - `callback`: **(required)** Invoked when the button is clicked. */ action: any; /** * The duration the toast should appear for. Recommended toast duration is 5 seconds with 1 extra second for every additional 300 characters in the toast body. */ duration: any; /** * When `true` the toast will have a separate close button (in addition to the call-to-action button). * When `false` toast will only have action button. */ closeButton: any; /** Assembly classes to apply to the outer container */ themeControlWrapper: any; /** Assembly classes to apply to the container */ themeControl: any; /** Assembly classes to apply to the content */ themeItem: any; }; } export default Toast;