import React from 'react'; import type { RichColorsMode, ToastIcons, ToastRecord, ToastSize, ToasterProps, SwipeDirection } from '../core/types'; /** Config the Toaster resolves once and hands to every toast. */ export interface ToastRuntime { closeButton: boolean; showProgressBar: boolean; size: ToastSize; richColors: RichColorsMode | false; color: boolean; invert: boolean; expanded: boolean; swipeDirections: SwipeDirection[]; swipeThreshold: number; icons: ToastIcons; loadingIcon: React.ReactNode; defaults: ToasterProps['toastOptions']; closeButtonAriaLabel: string; closeOnClick: boolean; } interface ToastProps { toast: ToastRecord; /** 0 = front-most. */ index: number; /** Distance from the front, used for the collapsed stack scale. */ offset: number; removed: boolean; runtime: ToastRuntime; onHeight: (id: string, height: number) => void; /** Called when this toast held focus as it went away. */ onRequestRefocus: () => void; } export declare const Toast: React.FC; export {};