import "./Toast.cjs"; import { ReactNode } from "react"; export type ToastVariant = 'info' | 'success' | 'error' | 'warning'; export type ToastOptions = { /** Title of the toast. Say what happened in a few words. */ title: string; /** Additional text shown below the title. */ description?: ReactNode; /** * Sets the tone of the toast, which decides its icon and color: `info`, * `success`, `warning` or `error`. */ variant?: ToastVariant; /** * Time in milliseconds before the toast auto-dismisses. * * When omitted, the default is derived from `variant`: `success`, `info` and * the default (no variant) auto-dismiss after 5000ms, while `warning` and * `error` persist until dismissed. Pass `0` to force a toast to persist * regardless of variant. Explicit values are clamped up to a 5000ms minimum. */ timeout?: number; /** An action rendered inside the toast, for example a `