import type { Ref, RefCallback } from 'react'; type AnyProps = Record; /** * Combines refs into one callback ref. Returns a React 19 cleanup so each * ref is reset (or its own cleanup runs) when the node detaches. */ export declare function composeRefs(...refs: Array | undefined>): RefCallback; /** * Merges the props a component wants to put on an element (`slot`) with the * props the consumer already put on it (`child`): * - `className` is joined (slot first), * - `style` is merged with the child winning per property, * - event handlers are chained, child first; the slot handler is skipped if * the child called `preventDefault()`, * - refs are composed, * - for everything else the child's explicit value wins. */ export declare function mergeProps(slot: AnyProps, child: AnyProps): AnyProps; export {};