import { Ref, RefCallback } from 'react'; /** * Custom hook for merging multiple React refs into a single callback ref. * @see https://floating-ui.com/docs/react-utils#usemergerefs * * Features: * - Merges an array of refs into a single callback ref * - Handles both function refs and object refs * - Optimized with useMemo for performance * - Returns null when all refs are null/undefined * - Supports generic types for type safety * - Automatically handles ref assignment and cleanup * * @param refs - Array of React refs to merge * @returns Single callback ref that handles all provided refs, or null if all refs are null */ export declare function useMergeRefs(refs: Array | undefined>): RefCallback | null; /** * Merges an array of refs into a single callback ref. * * Features: * - Merges an array of refs into a single callback ref * - Handles both function refs and object refs * * @param refs - Array of React refs to merge * @returns */ export declare function mergeRefs(refs: Array | undefined>): RefCallback | null;