import { type RefObject } from 'react'; import type { Transition } from '@atlaskit/motion/types'; import { type ModalDialogProps } from '../../types'; /** * This will run the respective passed in callback functions when modal is * opened or closed. */ export default function useOnMotionFinish({ onOpenComplete, onCloseComplete, }: Pick): [ RefObject, (state: Transition) => void ];