import * as React from 'react'; /** * A custom hook that stores the previous value of a state or prop. * * @param {T} value - The current value of the state or prop. * @returns {React.MutableRefObject} - A ref object with the previous value. * * @example * const [count, setCount] = useState(0); * const prevCount = usePrevious(count); */ declare function usePrevious(value: T): React.MutableRefObject; export default usePrevious;