import * as React from "react"; import { type ToasterProps } from "sonner"; import type { Icon as BaseIcon } from "../Icon/index.js"; import { ToastActions, ToastDescription, ToastTitle, type ToastRootProps } from "./components/index.js"; interface ToastProps extends Omit { title: React.ReactElement; description?: React.ReactElement; icon?: React.ReactElement; actions?: React.ReactElement; onCloseClick: () => void; dismissible?: boolean; } declare const Toast: (({ title, description, icon, actions, onCloseClick, dismissible, ...props }: ToastProps) => React.JSX.Element) & { original: ({ title, description, icon, actions, onCloseClick, dismissible, ...props }: ToastProps) => React.JSX.Element; originalName: string; displayName: string; } & { original: (({ title, description, icon, actions, onCloseClick, dismissible, ...props }: ToastProps) => React.JSX.Element) & { original: ({ title, description, icon, actions, onCloseClick, dismissible, ...props }: ToastProps) => React.JSX.Element; originalName: string; displayName: string; }; originalName: string; displayName: string; } & { createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<(({ title, description, icon, actions, onCloseClick, dismissible, ...props }: ToastProps) => React.JSX.Element) & { original: ({ title, description, icon, actions, onCloseClick, dismissible, ...props }: ToastProps) => React.JSX.Element; originalName: string; displayName: string; }>) => (props: unknown) => React.JSX.Element; } & { Title: (({ text, className, ...props }: import("./components/ToastTitle.js").ToastTitleProps) => React.JSX.Element) & { original: ({ text, className, ...props }: import("./components/ToastTitle.js").ToastTitleProps) => React.JSX.Element; originalName: string; displayName: string; } & { original: (({ text, className, ...props }: import("./components/ToastTitle.js").ToastTitleProps) => React.JSX.Element) & { original: ({ text, className, ...props }: import("./components/ToastTitle.js").ToastTitleProps) => React.JSX.Element; originalName: string; displayName: string; }; originalName: string; displayName: string; } & { createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<(({ text, className, ...props }: import("./components/ToastTitle.js").ToastTitleProps) => React.JSX.Element) & { original: ({ text, className, ...props }: import("./components/ToastTitle.js").ToastTitleProps) => React.JSX.Element; originalName: string; displayName: string; }>) => (props: unknown) => React.JSX.Element; }; Description: (({ text, className, ...props }: import("./components/ToastDescription.js").DescriptionProps) => React.JSX.Element) & { original: ({ text, className, ...props }: import("./components/ToastDescription.js").DescriptionProps) => React.JSX.Element; originalName: string; displayName: string; } & { original: (({ text, className, ...props }: import("./components/ToastDescription.js").DescriptionProps) => React.JSX.Element) & { original: ({ text, className, ...props }: import("./components/ToastDescription.js").DescriptionProps) => React.JSX.Element; originalName: string; displayName: string; }; originalName: string; displayName: string; } & { createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<(({ text, className, ...props }: import("./components/ToastDescription.js").DescriptionProps) => React.JSX.Element) & { original: ({ text, className, ...props }: import("./components/ToastDescription.js").DescriptionProps) => React.JSX.Element; originalName: string; displayName: string; }>) => (props: unknown) => React.JSX.Element; }; Actions: (({ children, className, ...props }: React.HTMLAttributes) => React.JSX.Element) & { original: ({ children, className, ...props }: React.HTMLAttributes) => React.JSX.Element; originalName: string; displayName: string; } & { original: (({ children, className, ...props }: React.HTMLAttributes) => React.JSX.Element) & { original: ({ children, className, ...props }: React.HTMLAttributes) => React.JSX.Element; originalName: string; displayName: string; }; originalName: string; displayName: string; } & { createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<(({ children, className, ...props }: React.HTMLAttributes) => React.JSX.Element) & { original: ({ children, className, ...props }: React.HTMLAttributes) => React.JSX.Element; originalName: string; displayName: string; }>) => (props: unknown) => React.JSX.Element; }; Provider: (props: ToasterProps) => React.JSX.Element; }; export { Toast, type ToastProps };