import { ToastVariant } from '../../../components/feedback/toast'; import { IconComponent } from '../../../components/foundation/icon'; export type ToastId = number | string; export type ShowToastOptions = { /** Visible toast heading. */ title: string; /** Optional supporting message. */ description?: string; /** SVG component. Defaults to the variant icon. */ icon?: IconComponent; /** Auto-dismiss delay in milliseconds. Defaults to `5000`. */ duration?: number; }; export type UseToastReturn = { show: (variant: ToastVariant, options: ShowToastOptions) => ToastId; showSuccess: (options: ShowToastOptions) => ToastId; showError: (options: ShowToastOptions) => ToastId; showWarning: (options: ShowToastOptions) => ToastId; showInfo: (options: ShowToastOptions) => ToastId; dismiss: (id: ToastId) => void; };