import { ReactNode, Ref, RefCallback } from 'react';
/**
* A function that merges React refs into one.
* Supports both functions and ref objects created using createRef() and useRef().
*
* Usage:
* ```tsx
*
* ```
*
* @param {(Ref | undefined)[]} inputRefs Array of refs
* @returns {Ref | RefCallback} Merged refs
*/
declare function mergeRefs(...inputRefs: (Ref | undefined)[]): Ref | RefCallback;
/**
* This is a helper function that is used when a component supports `asChild`
* using the `Slot` component but its implementation contains nested DOM elements.
*
* Using it ensures if a consumer uses the `asChild` prop, the elements are in
* correct order in the DOM, adopting the intended consumer `children`.
*/
declare function getSubtree(options: {
asChild: boolean | undefined;
children: ReactNode;
}, content: ReactNode | ((children: ReactNode) => ReactNode)): ReactNode;
export { getSubtree, mergeRefs };