import { ReactNode, default as React } from 'react'; import { ToastAppearances } from '@viasat/beam-shared/components/toast'; export interface InternalToastProps extends ToastProps { /** * internal - animation handling inside the Toast */ isDismissed?: boolean; isFirstToast?: boolean; } export interface ToastProps extends React.ComponentPropsWithoutRef<'div'> { /** * Specify heading text for Toast */ heading?: ReactNode; /** * Specify body text for Toast */ body?: ReactNode; /** * Specify a different icon for Toast */ icon?: ReactNode; /** * Specify if the icon displays on the Toast * @default false */ hideIcon?: boolean; /** * Displays the lite version of the Toast */ lite?: boolean; /** * Specify if the Toast renders with a CloseButton. If autoDismiss is set to false than the toast will remain manually dismissible. * @default false */ dismissible?: boolean; /** * Specify if Toast auto dismisses * @default true */ autoDismiss?: boolean; /** * Number of milliseconds before toast is automatically dismissed. Default is 7000 milliseconds. * @default 7000 */ duration?: number; /** * Specify the appearance of a Toast */ appearance?: ToastAppearances; /** * Specify if actions display on the Toast */ actions?: ReactNode; /** * Specify a callback function to be called while Toast closes */ onClose?: () => void; } export declare const Toast: ({ actions, appearance, body, className: _className, dismissible, heading, hideIcon, icon, lite, onClose, autoDismiss, isDismissed, id, duration, isFirstToast, ...props }: InternalToastProps) => React.ReactElement;