import { RefObject } from 'react'; /** * Makes soft transitions between `auto` and a certain value of a CSS property possible * * @param {(element: R) => number} getValue A getter function that must return current value of a property to be transitioned * @param {boolean} handle A boolean switch that toggles transition state * @param {number} transitionSpeed Optional transition speed, defaults to 300 * * @returns {[React.RefObject, string]} A tuple of `ref` to be placed on a HTML element and a computed property value */ declare function useAutoTransition(getValue: (element: R) => number, [handle, transitionSpeed]: [boolean, number?]): [RefObject, string]; export default useAutoTransition;