import { MutableRefObject, ReactNode } from 'react'; import { HideReason, Intent } from './types'; declare type UseSnackbarParams = { autoHide: boolean; autoHideDuration: number; hideOnClickAway: boolean; intent: Intent; message?: React.ReactNode; onClose?: (reason: HideReason) => void; }; declare type UseSnackbarReturnValue = { open: boolean; shouldRender: boolean; handleClose: (reason: HideReason) => void; snackbarContainerRef: MutableRefObject; snackbarContainerProps: { onMouseEnter: () => void; onMouseLeave: () => void; }; message: ReactNode; intent: Intent; }; declare const useSnackbar: ({ autoHide, autoHideDuration, hideOnClickAway, intent: nextIntent, message: nextMessage, onClose, }: UseSnackbarParams) => UseSnackbarReturnValue; export default useSnackbar;