import * as class_variance_authority_types from 'class-variance-authority/types'; import * as React from 'react'; import * as ToastPrimitives from '@radix-ui/react-toast'; import { VariantProps } from 'class-variance-authority'; import * as react_jsx_runtime from 'react/jsx-runtime'; declare function Toaster(): react_jsx_runtime.JSX.Element; type ToasterToast = ToastProps & { id: string; title?: React.ReactNode; description?: React.ReactNode; action?: ToastActionElement; }; type ActionTypes = { ADD_TOAST: "ADD_TOAST"; UPDATE_TOAST: "UPDATE_TOAST"; DISMISS_TOAST: "DISMISS_TOAST"; REMOVE_TOAST: "REMOVE_TOAST"; }; type ActionType = ActionTypes; type Action = { type: ActionType["ADD_TOAST"]; toast: ToasterToast; } | { type: ActionType["UPDATE_TOAST"]; toast: Partial; } | { type: ActionType["DISMISS_TOAST"]; toastId?: ToasterToast["id"]; } | { type: ActionType["REMOVE_TOAST"]; toastId?: ToasterToast["id"]; }; interface State { toasts: ToasterToast[]; } declare const reducer: (state: State, action: Action) => State; type Toast$1 = Omit; declare function toast({ ...props }: Toast$1): { id: string; dismiss: () => void; update: (props: ToasterToast) => void; }; declare function useToast(): { toast: typeof toast; dismiss: (toastId?: string) => void; toasts: ToasterToast[]; }; declare const ToastProvider: React.FC; declare const ToastViewport: React.ForwardRefExoticComponent, "ref"> & React.RefAttributes>; declare const Toast: React.ForwardRefExoticComponent, "ref"> & VariantProps<(props?: ({ variant?: "default" | "destructive" | null | undefined; } & class_variance_authority_types.ClassProp) | undefined) => string> & React.RefAttributes>; declare const ToastAction: React.ForwardRefExoticComponent, "ref"> & React.RefAttributes>; declare const ToastClose: React.ForwardRefExoticComponent, "ref"> & React.RefAttributes>; declare const ToastTitle: React.ForwardRefExoticComponent, "ref"> & React.RefAttributes>; declare const ToastDescription: React.ForwardRefExoticComponent, "ref"> & React.RefAttributes>; type ToastProps = React.ComponentPropsWithoutRef; type ToastActionElement = React.ReactElement; export { Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, reducer, toast, useToast };