import { FC, ReactNode, RefObject } from "react"; import { IconData } from "@equinor/eds-icons"; //#region src/molecules/Toast/Toast.d.ts interface ToastProps { title: string; onClose: () => void; icon?: IconData; variant?: 'neutral' | 'info' | 'warning' | 'error' | 'success'; description?: ReactNode; action?: { onClick: () => void; text: string; }; duration?: number; ref?: RefObject; } /** * @param title - Title of the Toast * @param onClose - Called when the Toast is closed either by the duration or by the close button * @param icon - Icon in header, has defaults when using variants * @param variant - Neutral/Info/Warning/Error/Success * @param description - Description text * @param action - Action button * @param duration - Duration in seconds, if no duration is set it is persistent * @param ref - Ref to the Toast container */ declare const Toast: FC; //#endregion export { Toast, ToastProps };