import * as react_jsx_runtime from 'react/jsx-runtime'; import { ReactNode, ReactElement } from 'react'; import { ExternalToast, ToastT, ToastToDismiss, ToasterProps } from 'sonner'; export { ExternalToast, ToasterProps } from 'sonner'; import { r as MonkeysToastMessages } from '../../types-ee3a8b50874c.mjs'; type ToastVariant = 'error' | 'info' | 'success' | 'warning'; type ToastInput = Omit & { title?: ReactNode; description?: ReactNode; variant?: ToastVariant; }; type MonkeysToasterProps = ToasterProps & { useThemeClassNames?: boolean; }; type MonkeysToastProviderProps = { children: ReactNode; toasterProps?: MonkeysToasterProps; }; type ToastValue = { message?: unknown; title?: unknown; } | Error | null | string | undefined; type ToastResolver = ((value: ToastValue) => T) | T; type ToastTranslate = (value: string, params?: Record) => string; type ToastValueOptions = { variant?: ToastResolver; title?: ToastResolver; description?: ToastResolver; fallbackDescription?: ToastResolver; signature?: ToastResolver; duration?: ToastResolver; translate?: ToastTranslate; messages?: Partial; }; type ToastFeedEntry = { variant?: ToastVariant; title?: string; description?: string; duration?: number; signature?: string; } | null | undefined; type ToastDefaultMessages = MonkeysToastMessages; type ToastPromiseInput = (() => Promise) | Promise; type ToastPromiseReturn = { unwrap: () => Promise; } | number | string; type MonkeysToastApi = { (message: ReactNode, options?: ExternalToast): number | string; show: (input: ToastInput) => number | string | undefined; error: (input: ReactNode | ToastInput, options?: ExternalToast) => number | string | undefined; warning: (input: ReactNode | ToastInput, options?: ExternalToast) => number | string | undefined; success: (input: ReactNode | ToastInput, options?: ExternalToast) => number | string | undefined; info: (input: ReactNode | ToastInput, options?: ExternalToast) => number | string | undefined; message: (message: ReactNode, options?: ExternalToast) => number | string; promise: (promise: ToastPromiseInput, data?: unknown) => ToastPromiseReturn; dismiss: (id?: number | string) => number | string; loading: (message: ReactNode, options?: ExternalToast) => number | string; custom: (jsx: (id: number | string) => ReactElement, data?: ExternalToast) => number | string; getHistory: () => Array; getToasts: () => Array; }; declare function extractToastMessage(value: ToastValue, fallback?: string): string; declare function resolveToastVariantForMessage(value: ToastValue): ToastVariant; declare function MonkeysToaster({ className, closeButton, position, richColors, toastOptions, useThemeClassNames, visibleToasts, ...props }: MonkeysToasterProps): react_jsx_runtime.JSX.Element; declare function MonkeysToastProvider({ children, toasterProps }: MonkeysToastProviderProps): react_jsx_runtime.JSX.Element; declare function useToastOnValue(value: ToastValue, options?: ToastValueOptions): void; declare function useToastFeed(items: ToastFeedEntry[], options?: Pick): void; declare const toast: MonkeysToastApi; export { type MonkeysToastApi, MonkeysToastProvider, type MonkeysToastProviderProps, MonkeysToaster, type MonkeysToasterProps, type ToastInput, MonkeysToastProvider as ToastProvider, type ToastVariant, MonkeysToaster as Toaster, extractToastMessage, resolveToastVariantForMessage, toast, useToastFeed, useToastOnValue };