import { type ToasterProps } from "sonner"; import { type SaasflareComponentProps } from "../../providers"; /** * Props for {@link Toaster}. * * Extends Sonner's `ToasterProps` (`position`, `duration`, …) with * {@link SaasflareComponentProps}, so `iconWeight` and the other axes can be * supplied per-instance or inherited from . */ interface SaasflareToasterProps extends Omit, SaasflareComponentProps { } /** * Toast notification container built on Sonner. Mount once near the app root, * then fire toasts with Sonner's `toast()` API. Follows the next-themes color * scheme and swaps Sonner's default status icons for Phosphor equivalents. * * @component * @layer core * * @example * */ declare const Toaster: ({ surface, radius, animated, iconWeight, ...props }: SaasflareToasterProps) => import("react/jsx-runtime").JSX.Element; /** * Sonner's imperative toast API, re-exported so consumers and the mounted * {@link Toaster} are guaranteed to share ONE sonner module instance. * Importing `toast` from "sonner" directly can resolve to a second copy * (separate toast state) under isolated installs — always import it from * `@saasflare/ui` instead. */ export { toast } from "sonner"; export { Toaster, type SaasflareToasterProps };