UNPKG

@redocly/theme

Version:

Shared UI components lib

19 lines (18 loc) 614 B
import type { RefObject } from 'react'; import type { ToastItem } from '../types/toast'; interface UseToastLogicOptions { toast: ToastItem; onDismiss: (id: string) => void; stackIndex: number; } interface UseToastLogicReturn { wrapperRef: RefObject<HTMLDivElement | null>; hasDetails: boolean; dismissToast: () => void; handleMouseEnter: () => void; handleMouseLeave: () => void; ariaRole: 'alert' | 'status'; ariaLive: 'assertive' | 'polite'; } export declare function useToastLogic({ toast, onDismiss, stackIndex, }: UseToastLogicOptions): UseToastLogicReturn; export {};