UNPKG

@openhands/ui

Version:
19 lines (18 loc) 645 B
import { ExternalToast } from 'sonner'; import { JSX } from 'react'; type RenderContentProps = { onDismiss: () => void; }; type WithRenderContent = { renderContent: (props: RenderContentProps) => JSX.Element; text?: never; icon?: never; }; export declare const toasterMessages: { error: (text?: string, props?: ExternalToast) => void; success: (text?: string, props?: ExternalToast) => void; info: (text?: string, props?: ExternalToast) => void; warning: (text?: string, props?: ExternalToast) => void; custom: (renderContent: WithRenderContent["renderContent"], props?: ExternalToast) => void; }; export {};