/**
* Custom hook that runs a callback function when the component unmounts.
* Ensures the callback is only called once during the unmount phase.
*
* @paramonUnmount - The function to call on unmount.
*/exportdeclareconstuseUnmount: (onUnmount: () => void) =>void;