import { ToastT, ToastToDismiss } from 'sonner'; /** * Behaviour shared by `Snackbar` (v1) and `SnackbarV2`. * * Sonner keeps a single toast store for the whole app, so both containers see * every toast regardless of which one created it. Anything that decides the * fate of a persistent toast therefore has to behave identically in both, or a * v1 container mounted anywhere in the app silently breaks v2's guarantees. */ /** Sonner's default visible-stack size (`VISIBLE_TOASTS_AMOUNT`). */ export declare const DEFAULT_VISIBLE_TOASTS = 3; /** * A toast created with `duration: Infinity` never auto-dismisses. * * `getToasts()` returns live toasts alongside dismissal records, and only the * former carry a duration. */ export declare const isPersistentToast: (toast: ToastT | ToastToDismiss) => boolean; /** * Dismiss every toast except those explicitly marked persistent with * `duration: Infinity`. * * Calling `sonnerToast.dismiss()` with no arguments dismisses *all* toasts, * which silently defeats persistent toasts. Dismissing by id instead keeps the * click-away behaviour for ordinary toasts while leaving persistent ones alone. */ export declare const dismissNonPersistentToasts: () => void; /** * How many toasts the container should keep visible. * * Persistent toasts must never be pushed out of the visible stack by newer * toasts. Once evicted a toast gets `pointer-events: none`, and because a * persistent one also has no timer and is exempt from click-away, eviction * would leave it impossible to dismiss by any means. * * Sonner decides visibility by stack position (`index + 1 <= visibleToasts`) * over a newest-first array, so a persistent toast is the *oldest* entry and * therefore carries the *highest* index. Adding the persistent *count* to the * base is not enough: one persistent toast behind four ordinary ones sits at * index 4 while a base of 3 only lifts the ceiling to 4, and it disappears. * The ceiling has to clear the deepest persistent toast's index instead. */ export declare const useVisibleToastCount: (base?: number) => number; export declare const SnackbarHiddenToastStyles: () => import("react/jsx-runtime").JSX.Element;