import * as React from 'react'; /** * Hook that provides a setRef function, passable to the ref prop of a React element. * The setRef function will register and cleanup the element with the provided callbacks. * https://legacy.reactjs.org/docs/hooks-faq.html?source=post_page-----eb7c15198780--------------------------------#how-can-i-measure-a-dom-node * https://medium.com/@teh_builder/ref-objects-inside-useeffect-hooks-eb7c15198780 */ export declare function useSetRef(props?: { cleanup: (lastElement: T) => void; register: (element: T) => void; }): { ref: React.MutableRefObject; setRef: (newElement: T | null) => void; }; //# sourceMappingURL=useSetRef.d.ts.map