/// declare type CallbackRef = (ref: T | null) => void; declare type Ref = React.MutableRefObject | CallbackRef; export declare function mergeRefs(refA?: Ref | null, refB?: Ref | null): (value: T | null) => void; /** * Create and returns a single callback ref composed from two other Refs. * * ```tsx * const Button = React.forwardRef((props, ref) => { * const [element, attachRef] = useCallbackRef(); * const mergedRef = useMergedRefs(ref, attachRef); * * return