UNPKG

355 BTypeScriptView Raw
1import { DOMAttributes } from 'react';
2import { ToastProps } from '../types';
3export 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};