import { IconComponent } from '../../Icons/types'; import { ReactNode } from 'react'; import { ColorMode } from '../Shared/types'; type ToastElementsProps = { container: string; iconClass: string; icon: IconComponent; loading: string; }; type ToastVarians = 'success' | 'error' | 'warning' | 'info'; type ToastVariantClassnames = { dark: { [key in ToastVarians]: ToastElementsProps; }; light: { [key in ToastVarians]: ToastElementsProps; }; }; declare const toastVariants: ToastVariantClassnames; type ToastPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'top-center' | 'bottom-center'; export interface PyrionToastProps { id?: string | number; variant?: keyof typeof toastVariants['dark']; title?: string; description?: string; icon?: IconComponent; duration?: number; button?: { label?: string; onClick: () => void; }; colorMode?: ColorMode; showClose?: boolean; position?: ToastPosition; loading?: boolean; loadingTimeout?: number; finishLoader?: boolean; /** @deprecated no more allowed to use customContent */ customContent?: ReactNode; } declare const PyrionToast: (props: PyrionToastProps) => import("react/jsx-runtime").JSX.Element; export default PyrionToast; export declare function toastpyrion(title: string, options?: PyrionToastProps): string | number; export declare const toastPyrionPromise: (promise: Promise, options?: { loading?: Omit; success?: Omit | ((data: TData) => Omit | ReactNode); error?: Omit | ((error: TError) => Omit | ReactNode); colorMode?: ColorMode; position?: ToastPosition; timeOut?: number; }) => Promise;