import * as React from "react"; import { type ToasterProps as SonnerToasterProps } from "sonner"; import { ToastActions, ToastDescription, ToastTitle, type ToastRootProps } from "./components/index.js"; import { Icon } from "../Icon/index.js"; type ShowToastParams = { title: React.ReactElement | string; description?: React.ReactElement | string; icon?: React.ReactElement; actions?: React.ReactElement; dismissible?: boolean; duration?: number; position?: SonnerToasterProps["position"]; variant?: ToastRootProps["variant"]; }; declare const useToast: () => { showToast: (params: ShowToastParams) => string | number; showSuccessToast: (params: ShowToastParams) => string | number; showWarningToast: (params: ShowToastParams) => string | number; hideToast: (id: number | string) => string | number; hideAllToasts: () => void; }; export { useToast, type ShowToastParams };