import { type Ref, type RefObject } from 'react'; /** * A React hook that creates a memoized object reference which can handle both RefObject and function refs. * This hook provides a unified way to work with different types of React refs. * * @example * ```tsx * // Using with RefObject * const elementRef = useRef(null); * const objRef = useObjectRef(elementRef); * * // Using with function ref * const objRef = useObjectRef((element) => { * console.log('Element changed:', element); * }); * ``` */ export declare function useObjectRef(ref?: Ref): RefObject;