///
type CallbackRef = (ref: T | null) => void;
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
* })
* ```
*
* @param refA A Callback or mutable Ref
* @param refB A Callback or mutable Ref
* @category refs
*/
declare function useMergedRefs(refA?: Ref | null, refB?: Ref | null): (value: T | null) => void;
export default useMergedRefs;