useToast.d.ts 355 B

12345678910
  1. import { DOMAttributes } from 'react';
  2. import { ToastProps } from '../types';
  3. export declare function useToast(props: ToastProps): {
  4. playToast: () => void;
  5. pauseToast: () => void;
  6. isRunning: boolean;
  7. preventExitTransition: boolean;
  8. toastRef: import("react").RefObject<HTMLDivElement>;
  9. eventHandlers: DOMAttributes<HTMLElement>;
  10. };